We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 308

Summary: SDL detects too much axis on "some" joysticks
Product: SDL Reporter: Flightbase <nik>
Component: joystickAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: 1.2.9   
Hardware: x86   
OS: Linux   

Description Flightbase 2006-08-24 08:21:19 UTC
The problem seems to show up with devices, which have more then 4 axis. at least i have 2 different joysticks with 5 and 6 axis.
both are detected as /dev/input/js0 correctly. 

for example the "GREAT PLANES InterLink" joystick - it has 5 axis - and 5 buttons. sdl says: 

Opened Joystick 0
Name: GREAT PLANES InterLink
Number of Axes: 20
Number of Buttons: 5
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

this happens for different programs, which are using sdl: crrcsim, slope soaring simulator.

is there any way to tell sdl that this joystick got only 5 axis? would this solve the problem?
for other games (x-plane) the joystick is working perfectly - so i think the support at all is given.

thanks for any help.
Comment 1 Sam Lantinga 2006-09-23 21:15:21 UTC
Is this still active in SDL 1.2.11?
Comment 2 Sam Lantinga 2007-07-05 23:44:39 UTC
No update in a few months, and it's regarding an old version of SDL, so I'm closing this for now.  If you retest and find it still active in the current SDL code (http://www.libsdl.org/tmp/SDL-1.2.tar.gz) please reopen this bug.

If you're not able to debug SDL and find out what's going on and want to loan me your joystick, that's fine, just let me know.