Fixed bug with buttons not mapped correctly.
This commit is contained in:
parent
481a887e7c
commit
db32edfb28
1 changed files with 5 additions and 12 deletions
17
src/main.cpp
17
src/main.cpp
|
@ -1440,18 +1440,11 @@ static void CheckOptions()
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inputMappings->INPUT_BUTTON_ENTER = options.GetButtonEnter();
|
||||||
if (options.GetButtonEnter() )
|
inputMappings->INPUT_BUTTON_UP = options.GetButtonUp();
|
||||||
inputMappings->INPUT_BUTTON_ENTER = options.GetButtonEnter()-1;
|
inputMappings->INPUT_BUTTON_DOWN = options.GetButtonDown();
|
||||||
if (options.GetButtonUp() )
|
inputMappings->INPUT_BUTTON_BACK = options.GetButtonBack();
|
||||||
inputMappings->INPUT_BUTTON_UP = options.GetButtonUp()-1;
|
inputMappings->INPUT_BUTTON_INSERT = options.GetButtonInsert();
|
||||||
if (options.GetButtonDown() )
|
|
||||||
inputMappings->INPUT_BUTTON_DOWN = options.GetButtonDown()-1;
|
|
||||||
if (options.GetButtonBack() )
|
|
||||||
inputMappings->INPUT_BUTTON_BACK = options.GetButtonBack()-1;
|
|
||||||
if (options.GetButtonInsert() )
|
|
||||||
inputMappings->INPUT_BUTTON_INSERT = options.GetButtonInsert()-1;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Reboot_Pi()
|
void Reboot_Pi()
|
||||||
|
|
Loading…
Reference in a new issue