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 395

Summary: Microsoft SideWinder Precision Pro misidentified by libsdl
Product: SDL Reporter: Mike Frysinger <vapier>
Component: joystickAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: Other   
OS: Linux   
URL: http://bugs.gentoo.org/show_bug.cgi?id=156245

Description Mike Frysinger 2007-02-20 17:25:33 UTC
forwarding from Gentoo bugzilla:

Using libsdl 1.2.11 and a GAMEPORT version of the Microsoft SideWinder
Precision Pro joystick, the library is looking for the kernel string
"SideWinder Precision Pro," but the kernel string reads "Microsoft SideWinder
Precision Pro."  Flight 
simulation games fail to identify the hat, and incorrectly claim that it has
six axes rather than four.

This was most annoying under the game <i>Freespace 2</i>.  As there is no
ebuild for this game, I imagine this is a problem for nobody but me.  :-)

This patch fixed the problem:

# diff -u src/joystick/linux/SDL_sysjoystick.c.orig
src/joystick/linux/SDL_sysjoystick.c

--- src/joystick/linux/SDL_sysjoystick.c.orig   2006-05-11 20:02:32.000000000
-0700
+++ src/joystick/linux/SDL_sysjoystick.c        2006-11-25 12:40:47.000000000
-0800
@@ -48,6 +48,7 @@
 } special_joysticks[] = {
        { "MadCatz Panther XL", 3, 2, 1 }, /* We don't handle rudder (axis 8)
*/
        { "SideWinder Precision Pro", 4, 1, 0 },
+       { "Microsoft SideWinder Precision Pro", 4, 1, 0 },
        { "SideWinder 3D Pro", 4, 1, 0 },
        { "Microsoft SideWinder 3D Pro", 4, 1, 0 },
        { "Microsoft SideWinder Dual Strike USB version 1.0", 2, 1, 0 },
Comment 1 Ryan C. Gordon 2007-02-20 17:56:19 UTC
Fixed in svn revision #2988 for the 1.3 branch, and #2989 for the 1.2 branch.

Thanks!

--ryan.