diff --git a/src/main.cpp b/src/main.cpp index 82a3020..8d0bb36 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1440,18 +1440,11 @@ static void CheckOptions() while (1); } - - if (options.GetButtonEnter() ) - inputMappings->INPUT_BUTTON_ENTER = options.GetButtonEnter()-1; - if (options.GetButtonUp() ) - inputMappings->INPUT_BUTTON_UP = options.GetButtonUp()-1; - 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; - + inputMappings->INPUT_BUTTON_ENTER = options.GetButtonEnter(); + inputMappings->INPUT_BUTTON_UP = options.GetButtonUp(); + inputMappings->INPUT_BUTTON_DOWN = options.GetButtonDown(); + inputMappings->INPUT_BUTTON_BACK = options.GetButtonBack(); + inputMappings->INPUT_BUTTON_INSERT = options.GetButtonInsert(); } void Reboot_Pi()