src/video/windows/SDL_windowsmouse.c
changeset 8952 4bb098814ec4
parent 8950 66b11e777d54
child 8953 dc80dc0bd22e
equal deleted inserted replaced
8951:692ba71b9c04 8952:4bb098814ec4
   259        and manually query the mouse when it leaves the window. :/ */
   259        and manually query the mouse when it leaves the window. :/ */
   260     return ToggleRawInput(window != NULL);
   260     return ToggleRawInput(window != NULL);
   261 }
   261 }
   262 
   262 
   263 static Uint32
   263 static Uint32
   264 WIN_GetAbsoluteMouseState(int *x, int *y)
   264 WIN_GetGlobalMouseState(int *x, int *y)
   265 {
   265 {
   266     Uint32 retval = 0;
   266     Uint32 retval = 0;
   267     POINT pt = { 0, 0 };
   267     POINT pt = { 0, 0 };
   268     GetCursorPos(&pt);
   268     GetCursorPos(&pt);
   269     *x = (int) pt.x;
   269     *x = (int) pt.x;
   288     mouse->ShowCursor = WIN_ShowCursor;
   288     mouse->ShowCursor = WIN_ShowCursor;
   289     mouse->FreeCursor = WIN_FreeCursor;
   289     mouse->FreeCursor = WIN_FreeCursor;
   290     mouse->WarpMouse = WIN_WarpMouse;
   290     mouse->WarpMouse = WIN_WarpMouse;
   291     mouse->SetRelativeMouseMode = WIN_SetRelativeMouseMode;
   291     mouse->SetRelativeMouseMode = WIN_SetRelativeMouseMode;
   292     mouse->CaptureMouse = WIN_CaptureMouse;
   292     mouse->CaptureMouse = WIN_CaptureMouse;
   293     mouse->GetAbsoluteMouseState = WIN_GetAbsoluteMouseState;
   293     mouse->GetGlobalMouseState = WIN_GetGlobalMouseState;
   294 
   294 
   295     SDL_SetDefaultCursor(WIN_CreateDefaultCursor());
   295     SDL_SetDefaultCursor(WIN_CreateDefaultCursor());
   296 
   296 
   297     SDL_SetDoubleClickTime(GetDoubleClickTime());
   297     SDL_SetDoubleClickTime(GetDoubleClickTime());
   298 }
   298 }