all repos — mgba @ 1525eee8d2ee66d18933d2f14ad7e7426a97441a

mGBA Game Boy Advance Emulator

Wii: Z/Home for GUI_INPUT_CANCEL
Jeffrey Pfau jeffrey@endrift.com
Sun, 23 Aug 2015 02:10:49 -0700
commit

1525eee8d2ee66d18933d2f14ad7e7426a97441a

parent

fcb4429f120490a23c21e2eb600646f7b11f083c

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -387,6 +387,10 @@ if ((padkeys & PAD_BUTTON_B) || (wiiPad & WPAD_BUTTON_1) ||

((ext == WPAD_EXP_CLASSIC) && (wiiPad & (WPAD_CLASSIC_BUTTON_B | WPAD_CLASSIC_BUTTON_X)))) { keys |= 1 << GUI_INPUT_BACK; } + if ((padkeys & PAD_TRIGGER_Z) || (wiiPad & WPAD_BUTTON_HOME) || + ((ext == WPAD_EXP_CLASSIC) && (wiiPad & (WPAD_CLASSIC_BUTTON_HOME)))) { + keys |= 1 << GUI_INPUT_CANCEL; + } if ((padkeys & PAD_BUTTON_LEFT)|| (wiiPad & WPAD_BUTTON_UP) || ((ext == WPAD_EXP_CLASSIC) && (wiiPad & WPAD_CLASSIC_BUTTON_LEFT))) { keys |= 1 << GUI_INPUT_LEFT;