# SDL\_GetRelativeMouseState not returning anything when cursor outside window like in SDL1.2

**URL:** <https://discourse.libsdl.org/t/sdl-getrelativemousestate-not-returning-anything-when-cursor-outside-window-like-in-sdl1-2/26672>\
**Category:** SDL Development\
**Created:** [October 3, 2019, 9:50pm UTC](https://discourse.libsdl.org/t/sdl-getrelativemousestate-not-returning-anything-when-cursor-outside-window-like-in-sdl1-2/26672 "2019-10-03T21:50:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rene\_Dudfield](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/rene_dudfield/32/3235_2.png) [@Rene\_Dudfield](https://discourse.libsdl.org/u/Rene_Dudfield)\
**Post date:** [October 3, 2019, 9:50pm UTC](https://discourse.libsdl.org/t/sdl-getrelativemousestate-not-returning-anything-when-cursor-outside-window-like-in-sdl1-2/26672/1 "2019-10-03T21:50:19Z")

</div>

Hi,

`SDL_GetRelativeMouseState` doesn’t seem to return anything when the cursor is outside the window like it did before in SDL 1.2.x.

It does when `SDL_SetRelativeMouseMode` is called, however it also grabs and makes the mouse cursor invisible. But this behaviour isn’t what is wanted.

How to get the relative mouse movement outside the window when the SDL\_SetRelativeMouseMode is not enabled?

cheers,

ps. here’s the bug in the pygame issue tracker: [https://github.com/pygame/pygame/issues/1210](https://github.com/pygame/pygame/issues/1210)
