Skip to content

Commit

Permalink
Update rcore_ios.c
Browse files Browse the repository at this point in the history
  • Loading branch information
blueloveTH committed Mar 24, 2024
1 parent 5db5720 commit c0ac347
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platforms/rcore_ios.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,9 @@ static void send_gesture_event(NSSet<UITouch *> * touches, int action)
}
}

if (CORE.Input.Touch.pointCount > 0) CORE.Input.Touch.currentTouchState[MOUSE_BUTTON_LEFT] = 1;
else CORE.Input.Touch.currentTouchState[MOUSE_BUTTON_LEFT] = 0;

if(action == TOUCH_ACTION_MOVE){
CORE.Input.Mouse.previousPosition = CORE.Input.Mouse.currentPosition;
}else{
Expand Down

0 comments on commit c0ac347

Please sign in to comment.