Sorry to be the barer of bad news, but it seems that relative mouse is
completly broken in 1.0.3 both compiled with and without DGA, the mouse
is not usable in d1x, which uses the relative mode.
The relative mouse code changed in SDL 1.0.3.
To re-enable it you have to do the following:
- Set your video mode … SDL_SetVideoMode()
- Hide the cursor … SDL_ShowCursor(0)
- Grab the input … SDL_WM_GrabInput(SDL_GRAB_ON)
Are you the maintainer of the d1x port?
Then again their might be a bug in d1x, but it has worked fine from
version 0.9.6 and higher up untill now,
except that it always needed DGA mouse.
The nice thing about the new code is it no longer requires DGA mouse,
and no longer requires root permissions.
DGA is disabled by default, because of it’s dangerous effect on the
current X servers if the application does not exit cleanly. You can
enable DGA support when you compile SDL by passing configure the option
“–enable-video-x11-dgamouse”. This will be selectable at runtime in
future versions of SDL (probably 1.1.0+).
FYI, SDL 1.1 now contains joystick support, which is very handy for
a game like d1x.
The prerelease version of SDL 1.1 is available at:
http://www.devolution.com/~slouken/SDL/cvs.html
Thanks for the note…
-Sam Lantinga (slouken at devolution.com)
Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec