treball en curs: correccions de tidy
This commit is contained in:
@@ -775,28 +775,28 @@ void Menu::setDefaultActionWhenCancel(int item) {
|
||||
|
||||
// Gestiona la entrada de teclado y mando durante el menu
|
||||
void Menu::checkInput() {
|
||||
if (Input::get()->checkInput(input_up, REPEAT_FALSE)) {
|
||||
if (Input::get()->checkInput(UP, REPEAT_FALSE)) {
|
||||
decreaseSelectorIndex();
|
||||
if (soundMove != nullptr) {
|
||||
Audio::get()->playSound(soundMove);
|
||||
}
|
||||
}
|
||||
|
||||
if (Input::get()->checkInput(input_down, REPEAT_FALSE)) {
|
||||
if (Input::get()->checkInput(DOWN, REPEAT_FALSE)) {
|
||||
increaseSelectorIndex();
|
||||
if (soundMove != nullptr) {
|
||||
Audio::get()->playSound(soundMove);
|
||||
}
|
||||
}
|
||||
|
||||
if (Input::get()->checkInput(input_accept, REPEAT_FALSE)) {
|
||||
if (Input::get()->checkInput(ACCEPT, REPEAT_FALSE)) {
|
||||
itemSelected = selector.index;
|
||||
if (soundAccept != nullptr) {
|
||||
Audio::get()->playSound(soundAccept);
|
||||
}
|
||||
}
|
||||
|
||||
if (Input::get()->checkInput(input_cancel, REPEAT_FALSE)) {
|
||||
if (Input::get()->checkInput(CANCEL, REPEAT_FALSE)) {
|
||||
itemSelected = defaultActionWhenCancel;
|
||||
if (soundCancel != nullptr) {
|
||||
Audio::get()->playSound(soundCancel);
|
||||
|
||||
Reference in New Issue
Block a user