Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call that I missed in commit f0645cd8fd39
authorAlex Szpakowski <slime73@gmail.com>
Sun, 01 May 2016 19:51:10 -0300
changeset 10158941261e0db9f
parent 10157 6ad89111cb4f
child 10159 d41acf6379f6
Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call that I missed in commit f0645cd8fd39
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Mon Apr 25 22:17:38 2016 +0200
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun May 01 19:51:10 2016 -0300
     1.3 @@ -974,13 +974,8 @@
     1.4              cgpoint.x = window->x + x;
     1.5              cgpoint.y = window->y + y;
     1.6  
     1.7 -            /* According to the docs, this was deprecated in 10.6, but it's still
     1.8 -             * around. The substitute requires a CGEventSource, but I'm not entirely
     1.9 -             * sure how we'd procure the right one for this event.
    1.10 -             */
    1.11 -            CGSetLocalEventsSuppressionInterval(0.0);
    1.12              CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
    1.13 -            CGSetLocalEventsSuppressionInterval(0.25);
    1.14 +            CGAssociateMouseAndMouseCursorPosition(YES);
    1.15  
    1.16              Cocoa_HandleMouseWarp(cgpoint.x, cgpoint.y);
    1.17  #endif