mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 10:36:50 +00:00
(VITA) Workaround for PSVita Controls vs PSTV
This commit is contained in:
parent
12eac9e6ae
commit
351b3fe3f6
@ -796,7 +796,11 @@ 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;
|
||||
|
||||
|
@ -124,11 +124,17 @@ static int16_t psp_joypad_axis(unsigned port_num, uint32_t joyaxis)
|
||||
|
||||
static void psp_joypad_poll(void)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
unsigned player;
|
||||
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);
|
||||
|
||||
BIT64_CLEAR(lifecycle_state, RARCH_MENU_TOGGLE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user