This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/video/cocoa/SDL_cocoawindow.m
|
@@ -401,7 +401,7 @@ - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event |
|
|
enumerator = [touches objectEnumerator]; |
|
|
touch = (NSTouch*)[enumerator nextObject]; |
|
|
while (touch) { |
|
|
SDL_TouchID touchId = (SDL_TouchID)[touch device]; |
|
|
const SDL_TouchID touchId = (SDL_TouchID) ((size_t) [touch device]); |
|
|
if (!SDL_GetTouch(touchId)) { |
|
|
SDL_Touch touch; |
|
|
|
|
@@ -421,7 +421,7 @@ - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event |
|
|
} |
|
|
} |
|
|
|
|
|
SDL_FingerID fingerId = (SDL_FingerID)[touch identity]; |
|
|
const SDL_FingerID fingerId = (SDL_FingerID) ((size_t) [touch identity]); |
|
|
float x = [touch normalizedPosition].x; |
|
|
float y = [touch normalizedPosition].y; |
|
|
/* Make the origin the upper left instead of the lower left */ |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.