mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
(PSP) replace Controller blocking reads with non blocking ones.
This commit is contained in:
parent
89cf3de78c
commit
75dad304fd
@ -97,7 +97,7 @@ static void psp_input_poll(void *data)
|
|||||||
sceCtrlSetSamplingCycle(0);
|
sceCtrlSetSamplingCycle(0);
|
||||||
#endif
|
#endif
|
||||||
sceCtrlSetSamplingMode(DEFAULT_SAMPLING_MODE);
|
sceCtrlSetSamplingMode(DEFAULT_SAMPLING_MODE);
|
||||||
ret = CtrlReadBufferPositive(0, &state_tmp, 1);
|
ret = CtrlPeekBufferPositive(0, &state_tmp, 1);
|
||||||
(void)ret;
|
(void)ret;
|
||||||
|
|
||||||
psp->analog_state[0][0][0] = psp->analog_state[0][0][1] = psp->analog_state[0][1][0] = psp->analog_state[0][1][1] = 0;
|
psp->analog_state[0][0][0] = psp->analog_state[0][0][1] = psp->analog_state[0][1][0] = psp->analog_state[0][1][1] = 0;
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
#define PSP_CTRL_L SCE_CTRL_L
|
#define PSP_CTRL_L SCE_CTRL_L
|
||||||
#define PSP_CTRL_R SCE_CTRL_R
|
#define PSP_CTRL_R SCE_CTRL_R
|
||||||
|
|
||||||
#define CtrlReadBufferPositive(port, pad_data, bufs) sceCtrlReadBufferPositive(port, pad_data, bufs)
|
#define CtrlPeekBufferPositive(port, pad_data, bufs) sceCtrlPeekBufferPositive(port, pad_data, bufs)
|
||||||
|
|
||||||
#elif defined(PSP)
|
#elif defined(PSP)
|
||||||
|
|
||||||
@ -90,7 +90,7 @@
|
|||||||
|
|
||||||
#define DEFAULT_SAMPLING_MODE (PSP_CTRL_MODE_ANALOG)
|
#define DEFAULT_SAMPLING_MODE (PSP_CTRL_MODE_ANALOG)
|
||||||
|
|
||||||
#define CtrlReadBufferPositive(port, pad_data, bufs) sceCtrlReadBufferPositive(pad_data, bufs)
|
#define CtrlPeekBufferPositive(port, pad_data, bufs) sceCtrlPeekBufferPositive(pad_data, bufs)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user