src/video/cocoa/SDL_cocoamouse.m
changeset 7113 7b4b596b3cfb
parent 7106 31f8acac196b
child 7114 02b2fe147478
     1.1 --- a/src/video/cocoa/SDL_cocoamouse.m	Thu Apr 25 18:40:31 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoamouse.m	Thu Apr 25 18:40:22 2013 -0700
     1.3 @@ -192,7 +192,14 @@
     1.4  
     1.5      point.x = (float)window->x + x;
     1.6      point.y = (float)window->y + y;
     1.7 +
     1.8 +    /* According to the docs, this was deprecated in 10.6, but it's still
     1.9 +     * around. The substitute requires a CGEventSource, but I'm not entirely
    1.10 +     * sure how we'd procure the right one for this event.
    1.11 +     */
    1.12 +    CGSetLocalEventsSuppressionInterval(0.0);
    1.13      CGWarpMouseCursorPosition(point);
    1.14 +    CGSetLocalEventsSuppressionInterval(0.25);
    1.15  
    1.16      /* CGWarpMouseCursorPosition doesn't generate a window event, unlike our
    1.17       * other implementations' APIs.