all repos — mgba @ 23dbd1e508f1ef156ca937e9609b7ff108e4f1a9

mGBA Game Boy Advance Emulator

PSP2: Add back touch
Jeffrey Pfau jeffrey@endrift.com
Thu, 11 Aug 2016 22:36:36 -0700
commit

23dbd1e508f1ef156ca937e9609b7ff108e4f1a9

parent

554276d5c379401baa618ec4f4b4f0440be09b19

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/psp2/main.csrc/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");