From 6930ab22c880dcd801ed02b3b2a2f0788b534d5c Mon Sep 17 00:00:00 2001 From: WhiteMagic Date: Sat, 3 Feb 2018 11:37:09 +1100 Subject: [PATCH] Ensure duplicate joysticks are properly handled when plugging / unplugging --- gremlin/event_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gremlin/event_handler.py b/gremlin/event_handler.py index 4dd46e88..4f2942c8 100644 --- a/gremlin/event_handler.py +++ b/gremlin/event_handler.py @@ -242,6 +242,7 @@ def _joystick_handler(self, event): )) elif event.type in [sdl2.SDL_JOYDEVICEADDED, sdl2.SDL_JOYDEVICEREMOVED]: self._init_joysticks() + util.setup_duplicate_joysticks() self.device_change_event.emit() def _keyboard_handler(self, event):