mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
[GX] Probe Wiimote before doing input code for it
This commit is contained in:
parent
049b20f773
commit
6dad2cda8c
@ -321,6 +321,8 @@ static void gx_input_poll(void *data)
|
||||
}
|
||||
|
||||
#ifdef HW_RVL
|
||||
uint32_t type = 0;
|
||||
if (WPAD_Probe(port, &type) == WPAD_ERR_NONE)
|
||||
{
|
||||
uint32_t down = WPAD_ButtonsHeld(port);
|
||||
|
||||
@ -337,7 +339,7 @@ static void gx_input_poll(void *data)
|
||||
|
||||
expansion_t exp;
|
||||
WPAD_Expansion(port, &exp);
|
||||
switch (exp.type)
|
||||
switch (type)
|
||||
{
|
||||
case WPAD_EXP_NUNCHUK:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user