Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Don't call -[NSView setAcceptsTouchEvents] if the OS doesn't provide it.

Thanks to Dimiter 'malkia' Stanev for the fix!
  • Loading branch information
icculus committed Dec 9, 2011
1 parent 186b54f commit db563e2728fb2a5217efe75ae98a9d57a193dc7b
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/video/cocoa/SDL_cocoawindow.m
@@ -69,8 +69,11 @@ - (void)listen:(SDL_WindowData *)data
[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
}

0 comments on commit db563e2

Please sign in to comment.