mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-24 13:40:35 +00:00
(Wii) Use WPAD_Data to obtain local pointer to pad state
This commit is contained in:
parent
5f46f80b20
commit
49d35b2339
@ -323,7 +323,9 @@ static void gx_input_poll(void *data)
|
||||
uint32_t type = 0;
|
||||
if (WPAD_Probe(port, &type) == WPAD_ERR_NONE)
|
||||
{
|
||||
uint32_t down = WPAD_ButtonsHeld(port);
|
||||
WPADData *wpaddata = WPAD_Data(port);
|
||||
|
||||
uint32_t down = wpaddata->btns_h;
|
||||
|
||||
state |= (down & WPAD_BUTTON_A) ? GX_WIIMOTE_A : 0;
|
||||
state |= (down & WPAD_BUTTON_B) ? GX_WIIMOTE_B : 0;
|
||||
@ -336,8 +338,8 @@ static void gx_input_poll(void *data)
|
||||
if((down & WPAD_BUTTON_HOME) && (down & WPAD_BUTTON_B))
|
||||
quit_wiimote = true;
|
||||
|
||||
expansion_t exp;
|
||||
WPAD_Expansion(port, &exp);
|
||||
expansion_t exp = wpaddata->exp;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case WPAD_EXP_NUNCHUK:
|
||||
|
Loading…
x
Reference in New Issue
Block a user