Modificat checkInput en varies seccions per a gastar global_inputs.cpp

This commit is contained in:
2025-03-11 09:27:34 +01:00
parent 482dc3de54
commit be857cc8c8
11 changed files with 71 additions and 92 deletions

View File

@@ -1357,12 +1357,14 @@ void Game::checkPauseInput()
{
// Comprueba los mandos
for (int i = 0; i < input_->getNumControllers(); ++i)
{
if (input_->checkInput(InputType::SERVICE, INPUT_ALLOW_REPEAT, InputDeviceToUse::CONTROLLER, i) &&
input_->checkInput(InputType::PAUSE, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::CONTROLLER, i))
{
pause(!paused_);
return;
}
}
// Comprueba el teclado
if (input_->checkInput(InputType::PAUSE, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD))
@@ -1379,7 +1381,8 @@ void Game::handleDemoMode()
for (const auto &player : players_)
{
if (player->isPlaying())
{ // Maneja el input específico del jugador en modo demo.
{
// Maneja el input específico del jugador en modo demo.
handleDemoPlayerInput(player, index);
}