Skip to content
Snippets Groups Projects

Resolve "controller hotplugging"

Merged Fabian Heinrich requested to merge 118-controller-hotplugging into dev
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -2038,7 +2038,7 @@ class PyGameGUI:
@@ -2038,7 +2038,7 @@ class PyGameGUI:
if key_set.joystick == event.instance_id:
if key_set.joystick == event.instance_id:
key_set.joystick = None
key_set.joystick = None
log.debug(f"Joystick {event.instance_id} disconnected")
log.debug(f"Joystick {event.instance_id} disconnected")
log.debug("Number of joysticks:", pygame.joystick.get_count())
log.debug(f"Number of joysticks:"+str(pygame.joystick.get_count()))
# Press enter key or controller start button instead of mouse button press
# Press enter key or controller start button instead of mouse button press
if (
if (
Loading