mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 00:56:24 -05:00
Don't call -[NSView setAcceptsTouchEvents] if the OS doesn't provide it.
Thanks to Dimiter 'malkia' Stanev for the fix!
This commit is contained in:
@@ -69,8 +69,11 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
||||
[window setAcceptsMouseMovedEvents:YES];
|
||||
|
||||
[view setNextResponder:self];
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
|
||||
[view setAcceptsTouchEvents:YES];
|
||||
if ([view respondsToSelector:@selector(setAcceptsTouchEvents:)]) {
|
||||
[view setAcceptsTouchEvents:YES];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user