Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156245 - Microsoft SideWinder Precision Pro misidentified by media-libs/libsdl
Summary: Microsoft SideWinder Precision Pro misidentified by media-libs/libsdl
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: Normal minor (vote)
Assignee: Gentoo Games
URL: http://bugzilla.libsdl.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-25 11:56 UTC by Elf Sternberg
Modified: 2010-01-06 05:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elf Sternberg 2006-11-25 11:56:57 UTC
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 Paul Bredbury 2006-11-25 13:29:14 UTC
(In reply to comment #0)
> Freespace 2

See ebuild in bug #107081
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-01 13:54:02 UTC
Has this patch been sent upstream?
Comment 3 Ryan C. Gordon 2007-02-20 23:00:10 UTC
(This patch was just applied to upstream's Subversion repository, thanks!)

--ryan.