mirror of
https://github.com/libretro/RetroArch
synced 2025-02-23 06:41:04 +00:00
[VITA] Enable touch regardless of MiniVitaTV
This commit is contained in:
parent
65f406a39e
commit
3c27300a4e
@ -94,10 +94,13 @@ static bool psp_joypad_init(void *data)
|
|||||||
psp2_model = SCE_KERNEL_MODEL_VITATV;
|
psp2_model = SCE_KERNEL_MODEL_VITATV;
|
||||||
}
|
}
|
||||||
if (psp2_model != SCE_KERNEL_MODEL_VITATV)
|
if (psp2_model != SCE_KERNEL_MODEL_VITATV)
|
||||||
|
{
|
||||||
|
players_count = 1;
|
||||||
|
}
|
||||||
|
if (sceKernelGetModelForCDialog() != SCE_KERNEL_MODEL_VITATV)
|
||||||
{
|
{
|
||||||
sceTouchSetSamplingState(SCE_TOUCH_PORT_BACK, SCE_TOUCH_SAMPLING_STATE_START);
|
sceTouchSetSamplingState(SCE_TOUCH_PORT_BACK, SCE_TOUCH_SAMPLING_STATE_START);
|
||||||
sceTouchSetSamplingState(SCE_TOUCH_PORT_FRONT, SCE_TOUCH_SAMPLING_STATE_START);
|
sceTouchSetSamplingState(SCE_TOUCH_PORT_FRONT, SCE_TOUCH_SAMPLING_STATE_START);
|
||||||
players_count = 1;
|
|
||||||
}
|
}
|
||||||
sceCtrlGetControllerPortInfo(&curr_ctrl_info);
|
sceCtrlGetControllerPortInfo(&curr_ctrl_info);
|
||||||
memcpy(&old_ctrl_info, &curr_ctrl_info, sizeof(SceCtrlPortInfo));
|
memcpy(&old_ctrl_info, &curr_ctrl_info, sizeof(SceCtrlPortInfo));
|
||||||
@ -258,7 +261,7 @@ static void psp_joypad_poll(void)
|
|||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
#if defined(VITA)
|
#if defined(VITA)
|
||||||
if (psp2_model == SCE_KERNEL_MODEL_VITA
|
if (sceKernelGetModelForCDialog() == SCE_KERNEL_MODEL_VITA
|
||||||
&& settings->bools.input_backtouch_enable)
|
&& settings->bools.input_backtouch_enable)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user