PSP2: Add back touch

This commit is contained in:
Jeffrey Pfau 2016-08-11 22:36:36 -07:00
parent 554276d5c3
commit 23dbd1e508
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,7 @@ static uint32_t _pollInput(void) {
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 @@ int main() {
.pollGameInput = mPSP2PollInput
};
sceTouchSetSamplingState(SCE_TOUCH_PORT_FRONT, SCE_TOUCH_SAMPLING_STATE_START);
sceCtrlSetSamplingMode(SCE_CTRL_MODE_ANALOG_WIDE);
mGUIInit(&runner, "psvita");