neteja cppcheck: inicialitza Menu::h_, renomena macro PAUSE a DEBUG_PAUSE, const*
This commit is contained in:
1 parent
be95b8afab
commit
37cb3c782a
9 files changed
+143
-180
No files matched your search
@@ -164,10 +164,9 @@ auto Input::checkAnyInput(int device, int index) -> bool {
|
||||
if (device == INPUT_USE_KEYBOARD || device == INPUT_USE_ANY) {
|
||||
const bool *key_states = SDL_GetKeyboardState(nullptr);
|
||||
|
||||
for (auto &key_binding : key_bindings_) {
|
||||
if (key_states[key_binding.scancode]) {
|
||||
return true;
|
||||
}
|
||||
if (std::any_of(key_bindings_.begin(), key_bindings_.end(),
|
||||
[key_states](const auto &key_binding) { return key_states[key_binding.scancode]; })) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user