From db32edfb281cc8b55c434ed2f98429801ad799ab Mon Sep 17 00:00:00 2001 From: Stephen White Date: Sun, 30 Sep 2018 21:43:03 +1000 Subject: [PATCH] Fixed bug with buttons not mapped correctly. --- src/main.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) 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()