| Summary: | Use SDL_UDEV_* for joystick hotplugging [PATCH] | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Gabriel Jacobo <gabomdq> |
| Component: | joystick | Assignee: | Gabriel Jacobo <gabomdq> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | bonsairobo |
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Joystick hotplugging using SDL_UDEV | ||
|
Description
Gabriel Jacobo
2013-09-28 18:53:31 UTC
Created attachment 1343 [details]
Joystick hotplugging using SDL_UDEV
*** Bug 2033 has been marked as a duplicate of this bug. *** Offhand it looks good. Does it work? If so, ship it! :) http://hg.libsdl.org/SDL/rev/6b3cc8b7c589 Testing procedure was done using testjoystick. With a gamepad (a generic XBox 360 look alike, not recognized as a "controller") plugged in, I started testjoystick. Plugging in and out recognizes the joystick dissapearing and coming back. With --disable-udev, testjoystick never notices the joystick going away, so I guess this is working. A curiosity you are probably aware of, with the XBox 360 wireless receiver plugged in and the xpad module loaded, I always get 4 Xbox 360 joysticks reported by SDL, even though there's none "connected" wirelessly. It's probably related to the xpad driver though. |