src/video/cocoa/SDL_cocoawindow.m
changeset 7098 f4b2c6fb0258
parent 7087 5639ac726076
child 7113 7b4b596b3cfb
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Tue Apr 23 18:47:32 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Tue Apr 23 18:47:38 2013 -0700
     1.3 @@ -392,7 +392,14 @@
     1.4  
     1.5              cgpoint.x = window->x + x;
     1.6              cgpoint.y = window->y + y;
     1.7 +
     1.8 +            /* We have to disassociate the curosr & the mouse before issuing
     1.9 +             * this cursor warp, otherwise it gets limited to one update per
    1.10 +             * 250ms, and looks very choppy.
    1.11 +             */
    1.12 +            CGAssociateMouseAndMouseCursorPosition(NO);
    1.13              CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
    1.14 +            CGAssociateMouseAndMouseCursorPosition(YES);
    1.15          }
    1.16      }
    1.17      SDL_SendMouseMotion(window, 0, 0, x, y);