| Summary: | [PATCH] Non-udev in joystick in Linux does not push JOYDEVICEADDED event | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Joseph Carter <tjcarter> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | tjcarter |
| Version: | HG 2.1 | ||
| Hardware: | x86 | ||
| OS: | Mac OS X 10.8 | ||
| Attachments: | Send SDL_JOYDEVICEADDED with or without udev | ||
And of course, while I was typing this, it looks like Sam applied the patch already. |
Created attachment 1363 [details] Send SDL_JOYDEVICEADDED with or without udev Now that we've agreed the Windows mmjoystick driver is to be nuked (reminder: Nuke Windows mmjoystick driver…) Linux without udev is the only supported joystick target that does not fire off an event whenever it finds a joystick (basically at InitSubSystem time in this case.) Without libudev, we cannot notify the user that a joystick has disappeared or give them notice of any new ones that show up, but our crude scan should be consistent and report the what it finds. This patch does not address the FIXME regarding creation of SDL_PrivateJoyDeviceAdded and SDL_PrivateJoyDeviceRemoved. I'll do that if desired, but it should be a separate commit. Just add a note here if you want it. This patch makes a similar change to where the SDL_JOYDEVICEREMOVED event is fired off, for the sake of consistency. Tested with and without libudev on Ubuntu 13.04 under VMWare.