mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-24 10:01:06 +00:00
Mac: Trigger SDL_FINGERUP for all touches.
Fixes bug #2348. Thanks to Alex Szpakowski for the patch!
This commit is contained in:
parent
c0d86b9237
commit
8f660a4627
|
@ -699,9 +699,11 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
||||||
touches = [event touchesMatchingPhase:NSTouchPhaseBegan inView:nil];
|
touches = [event touchesMatchingPhase:NSTouchPhaseBegan inView:nil];
|
||||||
break;
|
break;
|
||||||
case COCOA_TOUCH_UP:
|
case COCOA_TOUCH_UP:
|
||||||
case COCOA_TOUCH_CANCELLED:
|
|
||||||
touches = [event touchesMatchingPhase:NSTouchPhaseEnded inView:nil];
|
touches = [event touchesMatchingPhase:NSTouchPhaseEnded inView:nil];
|
||||||
break;
|
break;
|
||||||
|
case COCOA_TOUCH_CANCELLED:
|
||||||
|
touches = [event touchesMatchingPhase:NSTouchPhaseCancelled inView:nil];
|
||||||
|
break;
|
||||||
case COCOA_TOUCH_MOVE:
|
case COCOA_TOUCH_MOVE:
|
||||||
touches = [event touchesMatchingPhase:NSTouchPhaseMoved inView:nil];
|
touches = [event touchesMatchingPhase:NSTouchPhaseMoved inView:nil];
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue