Linux Mint 13 Relative Mouse Problem

One of my users compiled my engine on “Linux Mint 13” (I actually never
heard of this), and mentioned this SDL2 problem. Note this ONLY happens
in windowed mode, with Relative Mouse Movement on.


About the mouse pointers, when I can get the pointer inside of the
engine window, all I will see is the dim3 pointer. But when I move the
mouse, the dim3 pointer may move a little bit (not slow, just normal)
and the OS mouse pointer shows up outside the dim3 window. I have to
experiment to keep both inside the dim3 window in order to click something.

It works fine in full screen. Not sure what can be done, or if anybody
even uses this version of linux, but I thought I’d mention this.

[>] Brian

Relative mouse mode is not always supported, I encountered this too (on
linux/X11 in windowed mode).
You need to check the return value of SDL_SetRelativeMouseMode (see
http://wiki.libsdl.org/moin.fcg/SDL_SetRelativeMouseMode).
A trick you can use is to warp the mouse to the center of the window
every frame. That way you’ll get mouse events like in relative mode and
the mouse will never really leave the window. The only difference I’m
aware of is that this won’t disable mouse acceleration like it’s
supposed to.On 17.07.2013 16:01, Brian Barnes wrote:

One of my users compiled my engine on “Linux Mint 13” (I actually
never heard of this), and mentioned this SDL2 problem. Note this ONLY
happens in windowed mode, with Relative Mouse Movement on.


About the mouse pointers, when I can get the pointer inside of the
engine window, all I will see is the dim3 pointer. But when I move the
mouse, the dim3 pointer may move a little bit (not slow, just normal)
and the OS mouse pointer shows up outside the dim3 window. I have to
experiment to keep both inside the dim3 window in order to click
something.

It works fine in full screen. Not sure what can be done, or if
anybody even uses this version of linux, but I thought I’d mention this.

[>] Brian


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

2013/7/17, Jannik Heller :

The only difference I’m
aware of is that this won’t disable mouse acceleration like it’s
supposed to.

Is it? Grabbing input will cause mouse acceleration to kick in again
(not sure why anybody would want it to be disabled though, it makes
movement feel a lot less natural).