debug joy jaune

This commit is contained in:
valere
2025-09-27 17:22:53 +02:00
parent e1db401b58
commit cbef487915

View File

@@ -33,7 +33,7 @@ def find_device():
def is_dolphin_running():
try:
output = subprocess.check_output(
["flatpak", "ps", "--columns=name"]
["flatpak", "ps"]
).decode()
return "org.DolphinEmu.dolphin-emu" in output
except Exception:
@@ -51,7 +51,9 @@ def handle_device(dev_path):
# cas spécial : joystick jaune (BTN_THUMBR, code 318)
if key_code == "318" and event.value == 1: # pression
keyboard.emit(uinput.KEY_LEFTALT, 1)
time.sleep(0.02)
keyboard.emit(uinput.KEY_ESC, 1)
time.sleep(0.05)
keyboard.emit(uinput.KEY_ESC, 0)
keyboard.emit(uinput.KEY_LEFTALT, 0)
continue