colinrmitchell.com

Blog

Mouse problems in SDL games

Posted Monday, March 9th 2015 in FreeBSD - Permalink

If the mouse is uncontrollably fast in SDL games, set the following environment variable before starting the game:

$ setenv SDL_VIDEO_X11_DGAMOUSE 0

I had a problem with the mouse occassionally moving to the left when I was turning it right. The following environment variable seems to have fixed this:

$ setenv SDL_MOUSE_RELATIVE 0


List Posts Newest Posts Page 1Next Page