The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Workaround for relative mouse issue on OS X
Vittorio Giovara
Guest

Hey, would you mind creating a bug on http://bugzilla.libsdl.org/enter_bug.cgi?product=SDL so that this doesn't get forgotten in the mailing list?
Thanks,
Vittorio

On Sat, Dec 15, 2012 at 11:08 AM, Kevin Shanahan wrote:
Quote:
After setting relative mouse mode on OS X, the first time the mouse is
moved a big delta is given (I guess some delta from the mouse position
at the time to the fixed point it then reports delta from).

In my case, an FPS with mouse controlling the view angle, this means
the view jumps to some crazy orientation the first time you touch the
mouse.

I tried working around it in various ways, but the only solution I
found that worked was to simply ignore the first event the comes in
after setting relative mouse mode.

Does the attached seem like a reasonable workaround?

Kevin.

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org