mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
[VITA] Fix input driver for PSTV
This commit is contained in:
parent
44fc3666ed
commit
87a7795331
@ -89,10 +89,8 @@ static void *psp_joypad_init(void *data)
|
|||||||
unsigned players_count = DEFAULT_MAX_PADS;
|
unsigned players_count = DEFAULT_MAX_PADS;
|
||||||
|
|
||||||
#if defined(VITA)
|
#if defined(VITA)
|
||||||
if (!sceCtrlIsMultiControllerSupported())
|
psp2_model = sceCtrlIsMultiControllerSupported()? SCE_KERNEL_MODEL_VITATV : SCE_KERNEL_MODEL_VITA;
|
||||||
psp2_model = SCE_KERNEL_MODEL_VITA;
|
|
||||||
else if(sceCtrlIsMultiControllerSupported() > 0)
|
|
||||||
psp2_model = SCE_KERNEL_MODEL_VITATV;
|
|
||||||
if (psp2_model != SCE_KERNEL_MODEL_VITATV)
|
if (psp2_model != SCE_KERNEL_MODEL_VITATV)
|
||||||
players_count = 1;
|
players_count = 1;
|
||||||
if (sceKernelGetModelForCDialog() != SCE_KERNEL_MODEL_VITATV)
|
if (sceKernelGetModelForCDialog() != SCE_KERNEL_MODEL_VITATV)
|
||||||
@ -378,7 +376,8 @@ static bool psp_joypad_rumble(unsigned pad,
|
|||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
if (psp2_model != SCE_KERNEL_MODEL_VITATV)
|
if (psp2_model != SCE_KERNEL_MODEL_VITATV)
|
||||||
return false;
|
return false;
|
||||||
|
if(pad >= DEFAULT_MAX_PADS)
|
||||||
|
return false;
|
||||||
switch (effect)
|
switch (effect)
|
||||||
{
|
{
|
||||||
case RETRO_RUMBLE_WEAK:
|
case RETRO_RUMBLE_WEAK:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user