We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1284b16 commit 831cdadCopy full SHA for 831cdad
onthefly/onthefly.py
@@ -66,14 +66,17 @@ def read_config_keyboard_device_path(filepath):
66
67
def simulate_key(ui, code, keystate):
68
ui.write(ecodes.EV_KEY, code, keystate)
69
+ time.sleep(0.005) # TEMP: fixes bug (see: https://github.com/gvalkov/python-evdev/issues/209)
70
ui.syn()
71
72
def simulate_key_press(ui, code):
73
ui.write(ecodes.EV_KEY, code, 1)
74
75
76
77
def simulate_key_release(ui, code):
78
ui.write(ecodes.EV_KEY, code, 0)
79
80
81
82
def simulate_key_stroke(ui, code):
0 commit comments