mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 21:39:54 +00:00
commit
7f89cb97a9
@ -138,7 +138,7 @@ static void psp_joypad_poll(void)
|
|||||||
unsigned j, k;
|
unsigned j, k;
|
||||||
SceCtrlData state_tmp;
|
SceCtrlData state_tmp;
|
||||||
#if defined(SN_TARGET_PSP2) || defined(VITA)
|
#if defined(SN_TARGET_PSP2) || defined(VITA)
|
||||||
int32_t ret = CtrlPeekBufferPositive(i + 1, &state_tmp, 1);
|
int32_t ret = CtrlPeekBufferPositive(i, &state_tmp, 1);
|
||||||
#else
|
#else
|
||||||
int32_t ret = CtrlPeekBufferPositive(i, &state_tmp, 1);
|
int32_t ret = CtrlPeekBufferPositive(i, &state_tmp, 1);
|
||||||
#endif
|
#endif
|
||||||
@ -186,7 +186,7 @@ static void psp_joypad_poll(void)
|
|||||||
|
|
||||||
static bool psp_joypad_query_pad(unsigned pad)
|
static bool psp_joypad_query_pad(unsigned pad)
|
||||||
{
|
{
|
||||||
return pad < PSP_MAX_PADS && pad_state;
|
return pad < PSP_MAX_PADS && pad_state[pad];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user