Skip to content

Commit 6dcf757

Browse files
rsn8887slouken
authored andcommitted
SDL_vitatouch.c: re-enable front touch on Vita
1 parent 17b9ed7 commit 6dcf757

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/video/vita/SDL_vitatouch.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void VITA_PollTouch(void)
123123
// Skip if finger was already previously down
124124
if (!finger_down) {
125125
// Send an initial touch
126-
SDL_SendTouch((SDL_TouchID)port,
126+
SDL_SendTouch((SDL_TouchID)(port + 1),
127127
finger_id,
128128
Vita_Window,
129129
SDL_TRUE,
@@ -133,7 +133,7 @@ void VITA_PollTouch(void)
133133
}
134134

135135
// Always send the motion
136-
SDL_SendTouchMotion((SDL_TouchID)port,
136+
SDL_SendTouchMotion((SDL_TouchID)(port + 1),
137137
finger_id,
138138
Vita_Window,
139139
x,
@@ -160,7 +160,7 @@ void VITA_PollTouch(void)
160160
VITA_ConvertTouchXYToSDLXY(&x, &y, touch_old[port].report[i].x, touch_old[port].report[i].y, port);
161161
finger_id = (SDL_FingerID)touch_old[port].report[i].id;
162162
// Finger released from screen
163-
SDL_SendTouch((SDL_TouchID)port,
163+
SDL_SendTouch((SDL_TouchID)(port + 1),
164164
finger_id,
165165
Vita_Window,
166166
SDL_FALSE,

0 commit comments

Comments
 (0)