Skip to content

Commit

Permalink
Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call t…
Browse files Browse the repository at this point in the history
…hat I missed in commit 2f72bdfee9bb
  • Loading branch information
slime73 committed May 1, 2016
1 parent bb9dcf5 commit d383502
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -974,13 +974,8 @@ - (void)mouseMoved:(NSEvent *)theEvent
cgpoint.x = window->x + x;
cgpoint.y = window->y + y;

/* According to the docs, this was deprecated in 10.6, but it's still
* around. The substitute requires a CGEventSource, but I'm not entirely
* sure how we'd procure the right one for this event.
*/
CGSetLocalEventsSuppressionInterval(0.0);
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
CGSetLocalEventsSuppressionInterval(0.25);
CGAssociateMouseAndMouseCursorPosition(YES);

Cocoa_HandleMouseWarp(cgpoint.x, cgpoint.y);
#endif
Expand Down

0 comments on commit d383502

Please sign in to comment.