From af28deb6b9124dd8817c984689337571fb350df5 Mon Sep 17 00:00:00 2001 From: WhiteMagic Date: Sat, 1 Jun 2019 09:46:49 +1000 Subject: [PATCH] Add short sleep to give devices time to be registered --- joystick_gremlin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/joystick_gremlin.py b/joystick_gremlin.py index 77fb94aa..b8e70233 100644 --- a/joystick_gremlin.py +++ b/joystick_gremlin.py @@ -1257,9 +1257,6 @@ def exception_hook(exception_type, value, trace): hg = gremlin.hid_guardian.HidGuardian() hg.add_process(os.getpid()) - # Initialize DirectInputListener - # DILL.init() - # Create user interface app_id = u"joystick.gremlin" ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(app_id) @@ -1268,6 +1265,7 @@ def exception_hook(exception_type, value, trace): app.setApplicationDisplayName("Joystick Gremlin") # Ensure joystick devices are correctly setup + time.sleep(1) gremlin.joystick_handling.joystick_devices_initialization() # Check if vJoy is properly setup and if not display an error