forked from BrokenFlows/keymap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdraw_func.py
More file actions
22 lines (21 loc) · 781 Bytes
/
draw_func.py
File metadata and controls
22 lines (21 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Here you declare all the classes for keys:
# This makes the key red for hold
def hl(key):
return {"key": key, "class": "hold"}
# This makes the key blue for combo
def cm(key):
return {"key": key, "class": "combo"}
# This makes the key red for a combo hold
def ch(key):
return {"key": key, "class": "combo_hold"}
# This makes the key grey (for static number rows)
def nm(key):
return {"key": key, "class": "number"}
# This makes it so you can add 'extra' keys to better mimick your layout.
# It has the opacity set to 0% so you won't even see the key is there.
def ph(key):
return {"key": key, "class": "invisible"}
# This makes the key green for home key.
# (I just used the two index finger home keys)
def hm(key):
return {"key": key, "class": "home"}