src/video/quartz/SDL_QuartzWM.m
changeset 303 767c10b9ec9f
parent 297 f6ffac90895c
child 324 f25f666d609a
equal deleted inserted replaced
302:8a86bdf34f0f 303:767c10b9ec9f
   181     p = NSMakePoint (x, y);
   181     p = NSMakePoint (x, y);
   182     cgp = QZ_PrivateSDLToCG (this, &p);   
   182     cgp = QZ_PrivateSDLToCG (this, &p);   
   183     CGDisplayMoveCursorToPoint (display_id, cgp);
   183     CGDisplayMoveCursorToPoint (display_id, cgp);
   184     warp_ticks = SDL_GetTicks();
   184     warp_ticks = SDL_GetTicks();
   185     warp_flag = 1;
   185     warp_flag = 1;
       
   186 
       
   187     SDL_PrivateMouseMotion(0, 0, x, y);
   186 }
   188 }
   187 
   189 
   188 static void QZ_WarpWMCursor (_THIS, Uint16 x, Uint16 y) {
   190 static void QZ_WarpWMCursor (_THIS, Uint16 x, Uint16 y) {
   189 
   191 
   190     /* Only allow warping when in foreground */
   192     /* Only allow warping when in foreground */