Skip to content

Commit

Permalink
Fix coding convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ubkp committed Dec 7, 2023
1 parent f8112c3 commit e35ac61
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/platforms/rcore_desktop_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,19 +1184,22 @@ void PollInputEvents(void)

// Check touch events
// NOTE: These cases need to be reviewed on a real touch screen
case SDL_FINGERDOWN: {
case SDL_FINGERDOWN:
{
CORE.Input.Touch.currentTouchState[event.tfinger.fingerId] = 1;

touchAction = 1;
gestureUpdate = true;
} break;
case SDL_FINGERUP: {
case SDL_FINGERUP:
{
CORE.Input.Touch.currentTouchState[event.tfinger.fingerId] = 0;

touchAction = 0;
gestureUpdate = true;
} break;
case SDL_FINGERMOTION: {
case SDL_FINGERMOTION:
{
CORE.Input.Touch.position[event.tfinger.fingerId].x = (float)event.motion.x;
CORE.Input.Touch.position[event.tfinger.fingerId].y = (float)event.motion.y;

Expand Down

0 comments on commit e35ac61

Please sign in to comment.