mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-18 16:28:51 +00:00
(VITA) Final Fix for controls
This commit is contained in:
parent
351b3fe3f6
commit
8dde35f221
@ -796,11 +796,7 @@ static const bool input_descriptor_label_show = true;
|
||||
|
||||
static const bool input_descriptor_hide_unbound = false;
|
||||
|
||||
#if defined(PSP) || defined(VITA)
|
||||
static const unsigned input_max_users = 1;
|
||||
#else
|
||||
static const unsigned input_max_users = 5;
|
||||
#endif
|
||||
|
||||
static const unsigned input_poll_type_behavior = 2;
|
||||
|
||||
|
@ -130,9 +130,6 @@ static void psp_joypad_poll(void)
|
||||
unsigned players_count = PSP_MAX_PADS;
|
||||
#ifdef PSP
|
||||
sceCtrlSetSamplingCycle(0);
|
||||
#else
|
||||
if(settings->input.max_users<PSP_MAX_PADS)
|
||||
players_count = settings->input.max_users;
|
||||
#endif
|
||||
|
||||
sceCtrlSetSamplingMode(DEFAULT_SAMPLING_MODE);
|
||||
@ -152,11 +149,16 @@ static void psp_joypad_poll(void)
|
||||
unsigned p = (player == 1) ? 2 : player;
|
||||
int32_t ret = CtrlPeekBufferPositive(p, &state_tmp, 1);
|
||||
|
||||
#if defined(SN_TARGET_PSP2) || defined(VITA)
|
||||
if(ret<0){
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_KERNEL_PRX
|
||||
state_tmp.Buttons = (state_tmp.Buttons & 0x0000FFFF)
|
||||
| (read_system_buttons() & 0xFFFF0000);
|
||||
#endif
|
||||
(void)ret;
|
||||
|
||||
analog_state[i][0][0] = analog_state[i][0][1] =
|
||||
analog_state[i][1][0] = analog_state[i][1][1] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user