mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Merge pull request #12424 from libretro/pstvinput
This commit is contained in:
commit
5ae4524176
@ -89,10 +89,8 @@ static void *psp_joypad_init(void *data)
|
||||
unsigned players_count = DEFAULT_MAX_PADS;
|
||||
|
||||
#if defined(VITA)
|
||||
if (!sceCtrlIsMultiControllerSupported())
|
||||
psp2_model = SCE_KERNEL_MODEL_VITA;
|
||||
else if(sceCtrlIsMultiControllerSupported() > 0)
|
||||
psp2_model = SCE_KERNEL_MODEL_VITATV;
|
||||
psp2_model = sceCtrlIsMultiControllerSupported()? SCE_KERNEL_MODEL_VITATV : SCE_KERNEL_MODEL_VITA;
|
||||
|
||||
if (psp2_model != SCE_KERNEL_MODEL_VITATV)
|
||||
players_count = 1;
|
||||
if (sceKernelGetModelForCDialog() != SCE_KERNEL_MODEL_VITATV)
|
||||
@ -378,7 +376,8 @@ static bool psp_joypad_rumble(unsigned pad,
|
||||
#ifdef VITA
|
||||
if (psp2_model != SCE_KERNEL_MODEL_VITATV)
|
||||
return false;
|
||||
|
||||
if(pad >= DEFAULT_MAX_PADS)
|
||||
return false;
|
||||
switch (effect)
|
||||
{
|
||||
case RETRO_RUMBLE_WEAK:
|
||||
|
Loading…
x
Reference in New Issue
Block a user