Varios arreglos

This commit is contained in:
2024-11-03 20:28:01 +01:00
parent f29eb2f411
commit 371c477d0d
18 changed files with 168 additions and 202 deletions

View File

@@ -36,7 +36,7 @@ void DefineButtons::render()
}
// Comprueba el botón que se ha pulsado
void DefineButtons::doControllerButtonDown(SDL_ControllerButtonEvent &event)
void DefineButtons::doControllerButtonDown(const SDL_ControllerButtonEvent &event)
{
// Solo pilla botones del mando que toca
if (input_->getJoyIndex(event.which) != static_cast<int>(index_controller_))
@@ -124,8 +124,6 @@ void DefineButtons::incIndexButton()
saveBindingsToOptions();
// Deshabilita
//index_controller_ = 0;
//index_button_ = 0;
enabled_ = false;
}
}