Add ALT keys for rot enc
This commit is contained in:
parent
3cadd95e65
commit
027c075be5
10
code.py
10
code.py
|
@ -104,8 +104,14 @@ while True:
|
||||||
ALT = False
|
ALT = False
|
||||||
pos = enc.position
|
pos = enc.position
|
||||||
if pos > last_pos:
|
if pos > last_pos:
|
||||||
keyboard.send(rot_right)
|
if ALT:
|
||||||
|
keyboard.send(Keycode.LEFT_SHIFT, rot_right)
|
||||||
|
else:
|
||||||
|
keyboard.send(rot_right)
|
||||||
elif pos < last_pos:
|
elif pos < last_pos:
|
||||||
keyboard.send(rot_left)
|
if ALT:
|
||||||
|
keyboard.send(Keycode.LEFT_SHIFT, rot_left)
|
||||||
|
else:
|
||||||
|
keyboard.send(rot_left)
|
||||||
last_pos = pos
|
last_pos = pos
|
||||||
time.sleep(btn_scan_delay)
|
time.sleep(btn_scan_delay)
|
||||||
|
|
Loading…
Reference in New Issue