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

@@ -188,6 +188,16 @@ auto Input::checkAnyButton(bool repeat) -> bool {
return false;
}
// Comprueba si algún jugador (P1 o P2) presionó alguna acción de una lista
auto Input::checkAnyPlayerAction(const std::span<const InputAction>& actions, bool repeat) -> bool {
for (const auto& action : actions) {
if (checkActionPlayer1(action, repeat) || checkActionPlayer2(action, repeat)) {
return true;
}
}
return false;
}
// Comprueba si hay algun mando conectado
auto Input::gameControllerFound() const -> bool { return !gamepads_.empty(); }