src/video/cocoa/SDL_cocoamouse.m
changeset 5391 06b239f48b91
parent 5387 03c79d46bf5c
child 5405 64fa8526e1ce
equal deleted inserted replaced
5390:fefd4f7b5214 5391:06b239f48b91
   109 static void
   109 static void
   110 Cocoa_WarpMouse(SDL_Window * window, int x, int y)
   110 Cocoa_WarpMouse(SDL_Window * window, int x, int y)
   111 {
   111 {
   112     CGPoint point;
   112     CGPoint point;
   113 
   113 
   114     point.x = (CGFloat)window->x + x;
   114     point.x = (float)window->x + x;
   115     point.y = (CGFloat)window->y + y;
   115     point.y = (float)window->y + y;
   116     CGWarpMouseCursorPosition(point);
   116     CGWarpMouseCursorPosition(point);
   117 }
   117 }
   118 
   118 
   119 void
   119 void
   120 Cocoa_InitMouse(_THIS)
   120 Cocoa_InitMouse(_THIS)