clang-format

This commit is contained in:
kalaposfos13 2024-11-15 09:06:52 +01:00
parent e43d60edaa
commit 900b578988

View File

@ -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;