| Summary: | multiple sticks on one USB node | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ryan C. Gordon <icculus> |
| Component: | joystick | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | mactalla.obair, shattered |
| Version: | don't know | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: |
sdl multi stick one usb node patch
query report ID of HID device |
||
|
Description
Ryan C. Gordon
2006-01-03 11:35:04 UTC
Created attachment 3 [details]
sdl multi stick one usb node patch
This one was just waiting for confirmation that it was a good patch...I'm inclined to apply it now and see if anyone yells. --ryan. Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL. --ryan. (In reply to comment #2) > This one was just waiting for confirmation that it was a good patch...I'm > inclined to apply it now and see if anyone yells. > > --ryan. > I tested this with my 8866 (the two joystick version), and it's working for me... except that my system isn't reading the name for my adapter, so is falling back to the USB ID as the name. So I do need to change the two lines in the patch to have it take effect. But then it works great. I would love to see this patch merged into CVS. -Andrew > I tested this with my 8866 (the two joystick version), and it's working for
> me... except that my system isn't reading the name for my adapter, so is
> falling back to the USB ID as the name. So I do need to change the two lines
> in the patch to have it take effect. But then it works great. I would love to
> see this patch merged into CVS.
Can you attach a diff relative to the patched source that shows what you need to change to make it work?
Thank!
(In reply to comment #5) > > I tested this with my 8866 (the two joystick version), and it's working for > > me... except that my system isn't reading the name for my adapter, so is > > falling back to the USB ID as the name. So I do need to change the two lines > > in the patch to have it take effect. But then it works great. I would love to > > see this patch merged into CVS. > > Can you attach a diff relative to the patched source that shows what you need > to change to make it work? > > Thank! I've been working with this further, and this patch is not needed for the dual version of this adapter (MP-8866) any longer. A patch has been committed to the linux kernel (as of 2.6.16 post rc5) which retrieves all the inputs from this device, meaning we have access to the individual joysticks at a lower level than SDL -- where it belongs. Essentially, this device falsely advertises that it has a single input. It's a two-line fix to tell the kernel to ignore what what is advertised and search for all inputs. Perhaps the original author of this patch can see if HID_QUIRK_MULTI_INPUT also works for his quad version and SDL won't need to worry about it. See here for the patch of the dual version: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=e65335ef187c9cbc50bbc56be0fe966b593beb49 I added this patch to CVS anyway, since it's a cleaner version of what was already implemented. Can you verify that it works correctly on older kernels, and doesn't break anything on newer kernels? Thanks! I've made a similar patch to BSD-specific USB driver, please review it too. Created attachment 85 [details]
query report ID of HID device
(In reply to comment #9) > Created an attachment (id=85) [edit] > query report ID of HID device > Looks good to me... |