add support for shoulder buttons in config menu

This commit is contained in:
Maschell 2019-02-07 13:04:26 +01:00
parent ad759ff269
commit 993b328f4c

View File

@ -167,6 +167,18 @@ void ConfigUtils::configMenuOpenedCallback(wups_overlay_options_type_t screen, v
if(vpad_data.btns_d & VPAD_BUTTON_RIGHT) { if(vpad_data.btns_d & VPAD_BUTTON_RIGHT) {
pressedButtons |= WUPS_CONFIG_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) { if(vpad_data.btns_r & VPAD_BUTTON_DOWN) {
newSelect++; newSelect++;