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 375

Summary: MP-8800 Quad USB Joypad no longer works with libsdl-1.2.10 or libsdl-1.2.11
Product: SDL Reporter: Dean LM <dean.lm>
Component: joystickAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P1 CC: sezeroz
Version: 1.2.10   
Hardware: x86   
OS: Linux   

Description Dean LM 2006-12-19 14:26:12 UTC
I've recently upgraded the SDL library from version 1.2.9 to 1.2.11 and found th
at my MP-8800 Quad USB Joypad no longer works. Tried downgrading to version 1.2.
10 but it too fails to detect the 4 joysticks. I've reverted back to version 1.2
.9 and it works fine.
        Could it be due to a change/bug in /src/joystick/linux/SDL_sysjoystick.c
 in version 1.2.10?

1.2.11 installed

> sdl-config --version
1.2.11

> ./SDL-1.2.11/test/testjoystick
There are 1 joysticks attached
Joystick 0: /dev/js0

> ./SDL-1.2.11/test/testjoystick 0
There are 1 joysticks attached
Joystick 0: /dev/js0
Watching joystick 0: (/dev/js0)
Joystick has 2 axes, 0 hats, 0 balls, and 2 buttons


1.2.10 installed

> sdl-config --version
1.2.10

> ./SDL-1.2.10/test/testjoystick
There are 1 joysticks attached
Joystick 0: /dev/js0
> ./SDL-1.2.10/test/testjoystick 0
There are 1 joysticks attached
Joystick 0: /dev/js0
Watching joystick 0: (/dev/js0)
Joystick has 2 axes, 0 hats, 0 balls, and 2 buttons


1.2.9 installed

> sdl-config --version
1.2.9

> ./SDL-1.2.9/test/testjoystick
There are 4 joysticks attached
Joystick 0: WiseGroup.,Ltd MP-8800 Quad USB Joypad #01
Joystick 1: WiseGroup.,Ltd MP-8800 Quad USB Joypad #02
Joystick 2: WiseGroup.,Ltd MP-8800 Quad USB Joypad #03
Joystick 3: WiseGroup.,Ltd MP-8800 Quad USB Joypad #04

> ./SDL-1.2.9/test/testjoystick 0
There are 4 joysticks attached
Joystick 0: WiseGroup.,Ltd MP-8800 Quad USB Joypad #01
Joystick 1: WiseGroup.,Ltd MP-8800 Quad USB Joypad #02
Joystick 2: WiseGroup.,Ltd MP-8800 Quad USB Joypad #03
Joystick 3: WiseGroup.,Ltd MP-8800 Quad USB Joypad #04
Watching joystick 0: (WiseGroup.,Ltd MP-8800 Quad USB Joypad #01)
Joystick has 16 axes, 4 hats, 0 balls, and 48 buttons


> uname -r
2.6.19-gentoo-r1

> lsusb   
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 003: ID 0925:8800 Lakeview Research WiseGroup Ltd, MP-8800 Quad J
oypad
Bus 001 Device 001: ID 0000:0000  

>dmesg
...
usb 1-2: new low speed USB device using ohci_hcd and address 3
usb 1-2: configuration #1 chosen from 1 choice
input: WiseGroup.,Ltd MP-8800 Quad USB Joypad as /class/input/input4
input: USB HID v1.00 Joystick [WiseGroup.,Ltd MP-8800 Quad USB Joypad] on usb-00
00:00:02.2-2


regards,
Dean
Comment 1 Sam Lantinga 2007-07-06 01:15:08 UTC
This is probably a direct result of the fix for bug #4, which specifically turns the MP-8800 into a single joystick.
http://www.libsdl.org/cgi/viewvc.cgi/tags/SDL/release-1.2.10/src/joystick/linux/SDL_sysjoystick.c?r1=1947&r2=2105

Your specific joystick probably just needs to be added to the joystick_logicalmap array.

Can you debug it and see why your joystick name isn't showing up properly?  You can also probably define NO_LOGICAL_JOYSTICKS at the top of src/joystick/linux/SDL_sysjoystick.c to work around the problem locally.

Alternatively if you need help, you can loan me your joystick and I'll see if I can figure out the problem.
Comment 2 Ryan C. Gordon 2007-07-08 23:50:43 UTC
Bumping some bugs' priorities to P1 for consideration before the 1.2.12 release (though some may not be resolved for 1.2.12).

--ryan.

Comment 3 Sam Lantinga 2007-07-19 01:18:06 UTC
Any update on this?
Comment 4 Sam Lantinga 2009-09-20 22:41:05 UTC
This hasn't been updated in a couple years.  Please reopen this if it's still active in 1.3.