fix ZL button mapping for Wii U GamePad

This commit is contained in:
Daryl Borth 2019-04-16 19:12:02 -06:00
parent 668e5c3308
commit 6238b3ee37

View File

@ -2686,9 +2686,6 @@ ButtonMappingWindow()
else if(mapMenuCtrl == CTRLR_WIIDRC)
{
pressed = userInput[0].wiidrcdata.btns_d;
if(pressed == WIIDRC_BUTTON_HOME)
pressed = WPAD_CLASSIC_BUTTON_HOME;
}
else
{
@ -2726,8 +2723,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);