mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-23 19:19:22 +01:00
fix Wii U GamePad support
This commit is contained in:
parent
a129950089
commit
5160445ae8
@ -260,6 +260,18 @@ UpdatePads()
|
||||
userInput[i].pad.triggerL = PAD_TriggerL(i);
|
||||
userInput[i].pad.triggerR = PAD_TriggerR(i);
|
||||
}
|
||||
#ifdef HW_RVL
|
||||
if(WiiDRC_Inited() && WiiDRC_Connected())
|
||||
{
|
||||
userInput[0].wiidrcdata.btns_d = WiiDRC_ButtonsDown();
|
||||
userInput[0].wiidrcdata.btns_u = WiiDRC_ButtonsUp();
|
||||
userInput[0].wiidrcdata.btns_h = WiiDRC_ButtonsHeld();
|
||||
userInput[0].wiidrcdata.stickX = WiiDRC_lStickX();
|
||||
userInput[0].wiidrcdata.stickY = WiiDRC_lStickY();
|
||||
userInput[0].wiidrcdata.substickX = WiiDRC_rStickX();
|
||||
userInput[0].wiidrcdata.substickY = WiiDRC_rStickY();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user