centralitzada la gestio d'SKIP per a les escenes

This commit is contained in:
2025-12-16 08:33:29 +01:00
parent 3d0057220d
commit 8b896912b2
7 changed files with 25 additions and 30 deletions

View File

@@ -415,14 +415,7 @@ void EscenaLogo::dibuixar() {
}
auto EscenaLogo::checkSkipButtonPressed() -> bool {
auto* input = Input::get();
for (auto action : SKIP_BUTTONS_LOGO) {
if (input->checkActionPlayer1(action, Input::DO_NOT_ALLOW_REPEAT) ||
input->checkActionPlayer2(action, Input::DO_NOT_ALLOW_REPEAT)) {
return true;
}
}
return false;
return Input::get()->checkAnyPlayerAction(ARCADE_BUTTONS);
}
void EscenaLogo::processar_events(const SDL_Event& event) {