fix DefineButtons i Title: ja no fa coses rares al definir la ultima tecla
This commit is contained in:
@@ -451,4 +451,17 @@ void Input::initSDL()
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_TEST, "** SDL_GAMEPAD: INITIALIZATION COMPLETE\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Input::resetInputStates() {
|
||||
// Resetear todos los KeyBindings.active a false
|
||||
for (auto &key : key_bindings_) {
|
||||
key.active = false;
|
||||
}
|
||||
// Resetear todos los ControllerBindings.active a false
|
||||
for (auto &controller_vec : controller_bindings_) {
|
||||
for (auto &binding : controller_vec) {
|
||||
binding.active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user