]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
implemented support for turning off mousegrab in csqc (feature existed
[xonotic/darkplaces.git] / vid_sdl.c
index 3a636cc17ab7c9555052b85705752672854f643c..b38a22a3c0c97cf5525c05394fd40cdb95f30ec8 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -305,6 +305,11 @@ void IN_Move( void )
                        in_mouse_y = y;
                }
        }
+
+       SDL_GetMouseState(&x, &y);
+       in_windowmouse_x = x;
+       in_windowmouse_y = y;
+
        if (vid_numjoysticks && joy_enable.integer && joy_index.integer >= 0 && joy_index.integer < vid_numjoysticks)
        {
                SDL_Joystick *joy = vid_joysticks[joy_index.integer];