Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Don't call -[NSView setAcceptsTouchEvents] if the OS doesn't provide it.
Browse files Browse the repository at this point in the history
Thanks to Dimiter 'malkia' Stanev for the fix!
  • Loading branch information
icculus committed Dec 9, 2011
1 parent 186b54f commit db563e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -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
}

Expand Down

0 comments on commit db563e2

Please sign in to comment.