mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
clang-format
This commit is contained in:
parent
e43d60edaa
commit
900b578988
@ -463,7 +463,8 @@ bool isInputActive(const InputBinding& i) {
|
|||||||
if (pressed_it->first == key) {
|
if (pressed_it->first == key) {
|
||||||
if (!pressed_it->second) {
|
if (!pressed_it->second) {
|
||||||
key_found = true;
|
key_found = true;
|
||||||
flags_to_set.push_back(&pressed_it->second); // Collect pointer if flag is not already set
|
flags_to_set.push_back(
|
||||||
|
&pressed_it->second); // Collect pointer if flag is not already set
|
||||||
}
|
}
|
||||||
++pressed_it; // Move to the next key in pressed_keys
|
++pressed_it; // Move to the next key in pressed_keys
|
||||||
break;
|
break;
|
||||||
@ -472,7 +473,8 @@ bool isInputActive(const InputBinding& i) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If not found in pressed_keys, check in toggled_keys
|
// If not found in pressed_keys, check in toggled_keys
|
||||||
if (!key_found && std::find(toggled_keys.begin(), toggled_keys.end(), key) == toggled_keys.end()) {
|
if (!key_found &&
|
||||||
|
std::find(toggled_keys.begin(), toggled_keys.end(), key) == toggled_keys.end()) {
|
||||||
return false; // Key not found in either list
|
return false; // Key not found in either list
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -487,7 +489,8 @@ bool isInputActive(const InputBinding& i) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void activateOutputsFromInputs() {
|
void activateOutputsFromInputs() {
|
||||||
//LOG_DEBUG(Input, "Starting input scan... {} inputs active", std::distance(pressed_keys.begin(), pressed_keys.end()));
|
// LOG_DEBUG(Input, "Starting input scan... {} inputs active",
|
||||||
|
// std::distance(pressed_keys.begin(), pressed_keys.end()));
|
||||||
// reset everything
|
// reset everything
|
||||||
for (auto& it : pressed_keys) {
|
for (auto& it : pressed_keys) {
|
||||||
it.second = false;
|
it.second = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user