fix: menu.h usaba variables antiguas de input
This commit is contained in:
@@ -850,7 +850,7 @@ void Menu::setDefaultActionWhenCancel(int item)
|
|||||||
// Gestiona la entrada de teclado y mando durante el menu
|
// Gestiona la entrada de teclado y mando durante el menu
|
||||||
void Menu::checkInput()
|
void Menu::checkInput()
|
||||||
{
|
{
|
||||||
if (input->checkInput(input_up, REPEAT_FALSE))
|
if (input->checkInput(INPUT_UP, REPEAT_FALSE))
|
||||||
{
|
{
|
||||||
if (decreaseSelectorIndex())
|
if (decreaseSelectorIndex())
|
||||||
{
|
{
|
||||||
@@ -861,7 +861,7 @@ void Menu::checkInput()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input->checkInput(input_down, REPEAT_FALSE))
|
if (input->checkInput(INPUT_DOWN, REPEAT_FALSE))
|
||||||
{
|
{
|
||||||
if (increaseSelectorIndex())
|
if (increaseSelectorIndex())
|
||||||
{
|
{
|
||||||
@@ -872,7 +872,7 @@ void Menu::checkInput()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input->checkInput(input_accept, REPEAT_FALSE))
|
if (input->checkInput(INPUT_ACCEPT, REPEAT_FALSE))
|
||||||
{
|
{
|
||||||
itemSelected = selector.index;
|
itemSelected = selector.index;
|
||||||
if (soundAccept)
|
if (soundAccept)
|
||||||
@@ -881,7 +881,7 @@ void Menu::checkInput()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input->checkInput(input_cancel, REPEAT_FALSE))
|
if (input->checkInput(INPUT_CANCEL, REPEAT_FALSE))
|
||||||
{
|
{
|
||||||
itemSelected = defaultActionWhenCancel;
|
itemSelected = defaultActionWhenCancel;
|
||||||
if (soundCancel)
|
if (soundCancel)
|
||||||
|
|||||||
Reference in New Issue
Block a user