Layer in "send" eingebaut

This commit is contained in:
Michael Grote 2021-08-25 10:44:33 +02:00
parent 52c686a0e7
commit abeb3fdf1c
1 changed files with 6 additions and 3 deletions

View File

@ -127,11 +127,14 @@ while True:
fired = True
# Send the right sort of key press and set debounce for each
if current_layer == 1:
debounce = short_debounce
# für text senden langen debounce einstellen
if current_layer == 0:
keyboard.send(key_press)
elif current_layer == 1:
keyboard.send(key_press)
elif current_layer == 2:
keyboard.send(key_press)
elif current_layer == 3:
debounce = short_debounce
consumer_control.send(key_press)
# If enough time has passed, reset the fired variable