-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL_SetRelativeMouseMode(false) doesn't work? #327
Comments
Forgot to mention: I noticed this by chance while having the game open when connected via a VNC session. |
I have it built, but I have no idea how to test relative mode. Can you give me a quick start with repro steps for dummies? |
To en-/disable relative mouse mode, the easiest way is probably to use luanti-org/luanti#15770 and search for the The difference between relative and non-relative mode is - for me at least - very apparent. Non-relative is much slower and not as smooth. SDL_HINT_MOUSE_EMULATE_WARP_WITH_RELATIVE is essentially working as intended. In luanti, we have disabled relative mode in response to an issue, which apparently doesn't happen without relative mode. (Idk how common such issues are.) And Users could of course also disable the hint via environment variable. |
As I mentioned for me the VNC quirk is the only way to see if relative mode is enabled or not. |
In Luanti we use
SDL_WarpMouseInWindow
to fix the mouse at the middle of window in typical FPS style.Relative mode isn't used except for certain platforms (e.g. Linux+Wayland), because some people reported problems with it on Linux+X11.
This does not seem to work anymore with sdl2-compat in use.
SDL_HINT_MOUSE_EMULATE_WARP_WITH_RELATIVE
sounds like it could be related and I'm wondering if it should be turned off by default when using sdl2-compat.note: if you want to test this with Luanti right now you will need to use
-DUSE_SDL2=ON
versions:
The text was updated successfully, but these errors were encountered: