Commit Graph
3 Commits
Author SHA1 Message Date
Thomas Calvert 1409bbcadf fixup: fix memory leak 2025-03-02 11:41:43 -08:00
Thomas Calvert 788db3d826 fixup: link directly to issue 2025-03-02 11:41:43 -08:00
Thomas Calvert fe3e73ae0d Linux: Detect joystick hotplug
Interface with libudev to get notified when a new joystick appears.

The code is in IH_Linux_Event rather than IH_Linux_Joystick because it
seemed like the former uses evdev (standard for most devices nowadays)
whereas the latter uses the old joydev API. The result should be the
same in any case...

Implementation is a bit messy due to LinuxInputManager only scanning for
devices from its constructor, this forces RageInput to have an exception
for LinuxInputManager. Possibly with more involved surgery a cleaner
solution could be devised...
2025-03-02 11:41:43 -08:00