mirror of
https://github.com/dborth/vbagx.git
synced 2025-01-14 11:39:07 +01:00
fix wii u pro controller button mapping not being used in one case
This commit is contained in:
parent
b80827f36e
commit
de7e5bebf3
@ -906,15 +906,22 @@ static u32 DecodeJoy(unsigned short pad)
|
|||||||
}
|
}
|
||||||
else if(wpad_exp_type == WPAD_EXP_CLASSIC)
|
else if(wpad_exp_type == WPAD_EXP_CLASSIC)
|
||||||
{ // classic controller
|
{ // classic controller
|
||||||
|
if (wp->exp.classic.type == 2) {
|
||||||
for (u32 i =0; i < MAXJP; ++i)
|
for (u32 i = 0; i < MAXJP; ++i)
|
||||||
{
|
{
|
||||||
if ((pad_btns_h & btnmap[CTRLR_GCPAD][i]) // gamecube controller
|
if (wpad_btns_h & btnmap[CTRLR_WUPC][i] )
|
||||||
|| ( wiidrcp_btns_h & btnmap[CTRLR_WIIDRC][i] ) //wiiu gamepad
|
J |= vbapadmap[i];
|
||||||
|| ( (wpad_btns_h & btnmap[CTRLR_CLASSIC][i]) ))
|
}
|
||||||
J |= vbapadmap[i];
|
}
|
||||||
|
else {
|
||||||
|
for (u32 i = 0; i < MAXJP; ++i)
|
||||||
|
{
|
||||||
|
if ((pad_btns_h & btnmap[CTRLR_GCPAD][i]) // gamecube controller
|
||||||
|
|| ( wiidrcp_btns_h & btnmap[CTRLR_WIIDRC][i] ) //wiiu gamepad
|
||||||
|
|| ( (wpad_btns_h & btnmap[CTRLR_CLASSIC][i]) ))
|
||||||
|
J |= vbapadmap[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(wpad_exp_type == WPAD_EXP_NUNCHUK)
|
else if(wpad_exp_type == WPAD_EXP_NUNCHUK)
|
||||||
{ // nunchuk + wiimote
|
{ // nunchuk + wiimote
|
||||||
|
Loading…
x
Reference in New Issue
Block a user