(PS3/XDK) Don't rely on frame_count anymore for menu toggle

This commit is contained in:
twinaphex 2013-04-18 23:54:15 +02:00
parent a979cba13c
commit fa50efa93b
2 changed files with 4 additions and 10 deletions

View File

@ -216,11 +216,8 @@ static void ps3_input_poll(void *data)
*lifecycle_state |= (1ULL << RARCH_REWIND);
}
if (!(g_extern.frame_count < g_extern.delay_timer[0]))
{
if ((*state_p1 & (1ULL << RETRO_DEVICE_ID_JOYPAD_L3)) && (*state_p1 & (1ULL << RETRO_DEVICE_ID_JOYPAD_R3)))
*lifecycle_state |= (1ULL << RARCH_MENU_TOGGLE);
}
if ((*state_p1 & (1ULL << RETRO_DEVICE_ID_JOYPAD_L3)) && (*state_p1 & (1ULL << RETRO_DEVICE_ID_JOYPAD_R3)))
*lifecycle_state |= (1ULL << RARCH_MENU_TOGGLE);
cellPadGetInfo2(&pad_info);
pads_connected = pad_info.now_connect;

View File

@ -238,11 +238,8 @@ static void xdk_input_poll(void *data)
*lifecycle_state |= (1ULL << RARCH_REWIND);
}
if (!(g_extern.frame_count < g_extern.delay_timer[0]))
{
if((*state_p1 & (1ULL << RETRO_DEVICE_ID_JOYPAD_L3)) && (*state_p1 & (1ULL << RETRO_DEVICE_ID_JOYPAD_R3)))
*lifecycle_state |= (1ULL << RARCH_MENU_TOGGLE);
}
if((*state_p1 & (1ULL << RETRO_DEVICE_ID_JOYPAD_L3)) && (*state_p1 & (1ULL << RETRO_DEVICE_ID_JOYPAD_R3)))
*lifecycle_state |= (1ULL << RARCH_MENU_TOGGLE);
}
static int16_t xdk_input_state(void *data, const struct retro_keybind **binds,