Skip to content

Commit

Permalink
SDL_vitatouch.c: re-enable front touch on Vita
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 authored and slouken committed Nov 15, 2024
1 parent 17b9ed7 commit 6dcf757
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/vita/SDL_vitatouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void VITA_PollTouch(void)
// Skip if finger was already previously down
if (!finger_down) {
// Send an initial touch
SDL_SendTouch((SDL_TouchID)port,
SDL_SendTouch((SDL_TouchID)(port + 1),
finger_id,
Vita_Window,
SDL_TRUE,
Expand All @@ -133,7 +133,7 @@ void VITA_PollTouch(void)
}

// Always send the motion
SDL_SendTouchMotion((SDL_TouchID)port,
SDL_SendTouchMotion((SDL_TouchID)(port + 1),
finger_id,
Vita_Window,
x,
Expand All @@ -160,7 +160,7 @@ void VITA_PollTouch(void)
VITA_ConvertTouchXYToSDLXY(&x, &y, touch_old[port].report[i].x, touch_old[port].report[i].y, port);
finger_id = (SDL_FingerID)touch_old[port].report[i].id;
// Finger released from screen
SDL_SendTouch((SDL_TouchID)port,
SDL_SendTouch((SDL_TouchID)(port + 1),
finger_id,
Vita_Window,
SDL_FALSE,
Expand Down

0 comments on commit 6dcf757

Please sign in to comment.