[freespace2] Joystick HAT problem
Steven Fuller
relnev at icculus.org
Mon Jan 20 17:26:08 EST 2003
On 20 Jan 2003, Taylor Richards wrote:
> In the meantime I came up with the attached fix which works fine for
> me. If there is an easier way to get the same result please let me
> know. I'm not sure if this will work flawlessly for everyone since
> which set of axes is for the HAT is probably different between joystick
> models (ie. if you don't have a throttle).
I think the joystick driver only reports axii, so SDL has to use an
alternate method of determining which axii are really hats, and such. In
this case, you would want to use the SDL_LINUX_JOYSTICK env. var to
properly configure SDL:
http://sdldoc.csn.ul.ie/sdlenvvars.php
For example, I use:
export SDL_LINUX_JOYSTICK="'Logitech Inc. WingMan Extreme Digital 3D' 4 1 0"
Steven Fuller
More information about the freespace2
mailing list