fix ZL button mapping for Wii U GamePad

This commit is contained in:
Daryl Borth 2019-04-16 19:12:16 -06:00
parent 0f771aaf7a
commit ff33041e31

View File

@ -2732,9 +2732,6 @@ ButtonMappingWindow()
else if(mapMenuCtrl == CTRLR_WIIDRC)
{
pressed = userInput[0].wiidrcdata.btns_d;
if(pressed == WIIDRC_BUTTON_HOME)
pressed = WPAD_CLASSIC_BUTTON_HOME;
}
else
{
@ -2772,8 +2769,14 @@ ButtonMappingWindow()
}
}
if(pressed == WPAD_BUTTON_HOME || pressed == WPAD_CLASSIC_BUTTON_HOME)
if(mapMenuCtrl == CTRLR_WIIDRC) {
if(pressed == WIIDRC_BUTTON_HOME) {
pressed = 0;
}
}
else if(pressed == WPAD_BUTTON_HOME || pressed == WPAD_CLASSIC_BUTTON_HOME) {
pressed = 0;
}
HaltGui();
mainWindow->Remove(&promptWindow);