mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-08-23 11:24:34 -05:00
Config: Add support for X,Y, L3, R3, PLUS and MINUS in "onButtonPressed" callback
This commit is contained in:
@@ -445,6 +445,25 @@ void ConfigUtils::displayMenu() {
|
||||
if (buttonsTriggered & VPAD_BUTTON_ZR) {
|
||||
pressedButtons |= WUPS_CONFIG_BUTTON_ZR;
|
||||
}
|
||||
if (buttonsTriggered & VPAD_BUTTON_X) {
|
||||
pressedButtons |= WUPS_CONFIG_BUTTON_Y;
|
||||
}
|
||||
if (buttonsTriggered & VPAD_BUTTON_Y) {
|
||||
pressedButtons |= WUPS_CONFIG_BUTTON_X;
|
||||
}
|
||||
if (buttonsTriggered & VPAD_BUTTON_STICK_L) {
|
||||
pressedButtons |= WUPS_CONFIG_BUTTON_STICK_L;
|
||||
}
|
||||
if (buttonsTriggered & VPAD_BUTTON_STICK_R) {
|
||||
pressedButtons |= WUPS_CONFIG_BUTTON_STICK_R;
|
||||
}
|
||||
if (buttonsTriggered & VPAD_BUTTON_PLUS) {
|
||||
pressedButtons |= WUPS_CONFIG_BUTTON_PLUS;
|
||||
}
|
||||
if (buttonsTriggered & VPAD_BUTTON_MINUS) {
|
||||
pressedButtons |= WUPS_CONFIG_BUTTON_MINUS;
|
||||
}
|
||||
|
||||
if (pressedButtons != WUPS_CONFIG_BUTTON_NONE) {
|
||||
redraw = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user