| Summary: | [PATCH] non-libudev joystick detection doesn't see controllers that were already connected | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Simon McVittie <smcv> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | joystick: Fix initial detection when not using udev | ||
|
Description
Simon McVittie
2020-11-19 17:27:07 UTC
Created attachment 4529 [details]
joystick: Fix initial detection when not using udev
When watching for hotplug events we can poll the inotify fd, but we
still need to scan /dev/input once per process, otherwise we'll fail
to detect devices that were already connected.
Fixed, thanks! https://hg.libsdl.org/SDL/rev/9efc5e1acdcc |