neteja final tidy/cppcheck: const*, static, renames de constants

This commit is contained in:
2026-05-16 19:40:33 +02:00
parent 37cb3c782a
commit 479d9d941a
14 changed files with 272 additions and 337 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
#include <SDL3/SDL.h>
#include <algorithm> // for any_of
#include <algorithm> // for ranges::any_of
#include <iostream> // for basic_ostream, operator<<, cout, basi...
#include <utility>
@@ -164,7 +164,7 @@ auto Input::checkAnyInput(int device, int index) -> bool {
if (device == INPUT_USE_KEYBOARD || device == INPUT_USE_ANY) {
const bool *key_states = SDL_GetKeyboardState(nullptr);
if (std::any_of(key_bindings_.begin(), key_bindings_.end(),
if (std::ranges::any_of(key_bindings_,
[key_states](const auto &key_binding) { return key_states[key_binding.scancode]; })) {
return true;
}