summaryrefslogtreecommitdiff
path: root/doc/examples/evoluent-vertical-mouse-4/evremap.toml
blob: afb677491b29517532486561b26f3a5d6ccb7f84 (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
device_name = "Kingsis Peripherals Evoluent VerticalMouse 4"

# Order of mappings is important.

################################################################################
# Secondary functions, enabled by holding Button 6.
################################################################################

# Button 6 + Button 1 => Copy.
[[remap]]
input = ["BTN_FORWARD", "BTN_LEFT"]
output = ["KEY_COPY"]

# Button 6 + Button 2 => Paste.
[[remap]]
input = ["BTN_FORWARD", "BTN_MIDDLE"]
output = ["KEY_PASTE"]

# Button 6 + Button 3 => Ctrl + W.
# KEY_Z is used instead of KEY_W, because my keyboard layout is AZERTY.
[[remap]]
input = ["BTN_FORWARD", "BTN_RIGHT"]
output = ["KEY_LEFTCTRL", "KEY_Z"]

# Button 6 => Disabled.
# This is done to avoid confusion, because it is dedicated to enable
# secondary functions.
[[remap]]
input = ["BTN_FORWARD"]
output = []

################################################################################
# Primary functions.
################################################################################

# The middle finger => Right click.
# Just like on a horizontal mouse.
[[remap]]
input = ["BTN_MIDDLE"]
output = ["BTN_RIGHT"]

# Button 3 => Escape.
[[remap]]
input = ["BTN_RIGHT"]
output = ["KEY_ESC"]

# The wheel button => Middle click.
# Just like on a horizontal mouse.
[[remap]]
input = ["BTN_EXTRA"]
output = ["BTN_MIDDLE"]

# Button 5 => Enter.
[[remap]]
input = ["BTN_SIDE"]
output = ["KEY_ENTER"]