Skip to content

Commit

Permalink
Ensure duplicate joysticks are properly handled when plugging / unplu…
Browse files Browse the repository at this point in the history
…gging
  • Loading branch information
WhiteMagic committed Feb 3, 2018
1 parent 5999e3c commit 6930ab2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gremlin/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6930ab2

Please sign in to comment.