Fixed bug with buttons not mapped correctly.

This commit is contained in:
Stephen White 2018-09-30 21:43:03 +10:00
parent 481a887e7c
commit db32edfb28

View file

@ -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()