-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
foot_switch.talon
41 lines (28 loc) · 925 Bytes
/
foot_switch.talon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# First device
# Top button
key(keypad_0:down): skip()
key(keypad_0:up): user.foot_switch_key(0)
# Center button
key(keypad_1:down): skip()
key(keypad_1:up): user.foot_switch_key(1)
# Left button
key(keypad_2:down): skip()
key(keypad_2:up): user.foot_switch_key(2)
# Right button
key(keypad_3:down): skip()
key(keypad_3:up): user.foot_switch_key(3)
# Second device
# Top button
key(keypad_4:down): skip()
key(keypad_4:up): user.foot_switch_key(0)
# Center button
key(keypad_5:down): skip()
key(keypad_5:up): user.foot_switch_key(1)
# Left button
key(keypad_6:down): skip()
key(keypad_6:up): user.foot_switch_key(2)
# Right button
key(keypad_7:down): skip()
key(keypad_7:up): user.foot_switch_key(3)
# Misc
scroll reverse: user.foot_switch_scroll_reverse()