PSP2: Add back touch
Jeffrey Pfau jeffrey@endrift.com
Thu, 11 Aug 2016 22:36:36 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/platform/psp2/main.c
→
src/platform/psp2/main.c
@@ -73,7 +73,7 @@ }
static enum GUICursorState _pollCursor(unsigned* x, unsigned* y) { SceTouchData touch; - sceTouchPeek(0, &touch, 1); + sceTouchPeek(SCE_TOUCH_PORT_FRONT, &touch, 1); if (touch.reportNum < 1) { return GUI_CURSOR_NOT_PRESENT; }@@ -161,6 +161,7 @@ .incrementScreenMode = mPSP2IncrementScreenMode,
.pollGameInput = mPSP2PollInput }; + sceTouchSetSamplingState(SCE_TOUCH_PORT_FRONT, SCE_TOUCH_SAMPLING_STATE_START); sceCtrlSetSamplingMode(SCE_CTRL_MODE_ANALOG_WIDE); mGUIInit(&runner, "psvita");