mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Small cleanup
This commit is contained in:
parent
ecc625dbf1
commit
10e35d4d75
@ -138,8 +138,8 @@ static void psp_joypad_poll(void)
|
|||||||
unsigned j, k;
|
unsigned j, k;
|
||||||
SceCtrlData state_tmp;
|
SceCtrlData state_tmp;
|
||||||
int32_t ret;
|
int32_t ret;
|
||||||
unsigned i_tmp;
|
unsigned p;
|
||||||
unsigned i = i_tmp = player;
|
unsigned i = p = player;
|
||||||
|
|
||||||
#if defined(SN_TARGET_PSP2) || defined(VITA)
|
#if defined(SN_TARGET_PSP2) || defined(VITA)
|
||||||
/* Dumb hack, but here's the explanation -
|
/* Dumb hack, but here's the explanation -
|
||||||
@ -147,10 +147,10 @@ static void psp_joypad_poll(void)
|
|||||||
* can be 0 or 1 to read the first controller on
|
* can be 0 or 1 to read the first controller on
|
||||||
* a PSTV, but HAS to be 0 for a real VITA and 2
|
* a PSTV, but HAS to be 0 for a real VITA and 2
|
||||||
* for the 2nd controller on a PSTV */
|
* for the 2nd controller on a PSTV */
|
||||||
if (i_tmp == 1)
|
if (p == 1)
|
||||||
i_tmp = 2;
|
p = 2;
|
||||||
#endif
|
#endif
|
||||||
ret = CtrlPeekBufferPositive(i_tmp, &state_tmp, 1);
|
ret = CtrlPeekBufferPositive(p, &state_tmp, 1);
|
||||||
|
|
||||||
#ifdef HAVE_KERNEL_PRX
|
#ifdef HAVE_KERNEL_PRX
|
||||||
state_tmp.Buttons = (state_tmp.Buttons & 0x0000FFFF)
|
state_tmp.Buttons = (state_tmp.Buttons & 0x0000FFFF)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user