From 993b328f4cc7d0f9311ef78828eba8079da832c3 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 7 Feb 2019 13:04:26 +0100 Subject: [PATCH] add support for shoulder buttons in config menu --- src/myutils/ConfigUtils.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/myutils/ConfigUtils.cpp b/src/myutils/ConfigUtils.cpp index 2d3b1e4..3ea10ca 100644 --- a/src/myutils/ConfigUtils.cpp +++ b/src/myutils/ConfigUtils.cpp @@ -166,7 +166,19 @@ void ConfigUtils::configMenuOpenedCallback(wups_overlay_options_type_t screen, v } if(vpad_data.btns_d & VPAD_BUTTON_RIGHT) { pressedButtons |= WUPS_CONFIG_BUTTON_RIGHT; + } + if(vpad_data.btns_d & VPAD_BUTTON_L) { + pressedButtons |= WUPS_CONFIG_BUTTON_L; } + if(vpad_data.btns_d & VPAD_BUTTON_R) { + pressedButtons |= WUPS_CONFIG_BUTTON_R; + } + if(vpad_data.btns_d & VPAD_BUTTON_ZL) { + pressedButtons |= WUPS_CONFIG_BUTTON_ZL; + } + if(vpad_data.btns_d & VPAD_BUTTON_ZR) { + pressedButtons |= WUPS_CONFIG_BUTTON_ZR; + } if(vpad_data.btns_r & VPAD_BUTTON_DOWN) { newSelect++;