mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Backport/rewrites wmarquesr pt. 8
This commit is contained in:
parent
fdfcbaa042
commit
50f3999e9b
@ -346,6 +346,7 @@ static int16_t WPAD_StickY(WPADData *data, u8 right)
|
||||
static void gx_joypad_poll(void)
|
||||
{
|
||||
unsigned i, j, port;
|
||||
uint64_t *state_p1 = NULL;
|
||||
uint8_t gcpad = 0;
|
||||
|
||||
pad_state[0] = 0;
|
||||
@ -514,8 +515,7 @@ static void gx_joypad_poll(void)
|
||||
analog_state[port][i][j] = -0x7fff;
|
||||
}
|
||||
|
||||
uint64_t *state_p1 = &pad_state[0];
|
||||
|
||||
state_p1 = &pad_state[0];
|
||||
|
||||
BIT64_CLEAR(lifecycle_state, RARCH_MENU_TOGGLE);
|
||||
if (g_menu)
|
||||
@ -524,16 +524,16 @@ static void gx_joypad_poll(void)
|
||||
g_menu = false;
|
||||
}
|
||||
|
||||
if (*state_p1 & ((UINT64_C(1) << GX_GC_HOME)
|
||||
check_menu_toggle = (*state_p1 & (UINT64_C(1) << GX_GC_HOME));
|
||||
#ifdef HW_RVL
|
||||
| (UINT64_C(1) << GX_WIIMOTE_HOME)
|
||||
| (UINT64_C(1) << GX_CLASSIC_HOME)
|
||||
check_menu_toggle = (check_menu_toggle| (UINT64_C(1) << GX_WIIMOTE_HOME)
|
||||
| (UINT64_C(1) << GX_CLASSIC_HOME));
|
||||
#ifdef HAVE_LIBSICKSAXIS
|
||||
| (UINT64_C(1) << GX_SIXAXIS_PS)
|
||||
check_menu_toggle = (check_menu_toggle | (UINT64_C(1) << GX_SIXAXIS_PS));
|
||||
#endif
|
||||
#endif
|
||||
))
|
||||
|
||||
if (check_menu_toggle)
|
||||
BIT64_SET(lifecycle_state, RARCH_MENU_TOGGLE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user