SDL_GetRelativeMouseState not returning anything when cursor outside window like in SDL1.2

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