Skip to content

Commit 3b312e7

Browse files
committed
feat: add rotary extension config support
This use a new version of configs, which combined all key-related configs into one
1 parent b5c35a8 commit 3b312e7

File tree

5 files changed

+305
-51
lines changed

5 files changed

+305
-51
lines changed

data/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>TinyPICO BLE Keypad Web UI</title><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><script defer="defer" src="/js/app.52e07775.js"></script></head><body><noscript><strong>We're sorry but TinyPICO BLE Keypad Web UI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>TinyPICO BLE Keypad Web UI</title><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><script defer="defer" src="/js/app.6ce0f011.js"></script></head><body><noscript><strong>We're sorry but TinyPICO BLE Keypad Web UI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/keyconfig.json

Lines changed: 144 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,144 @@
1-
[
2-
{
3-
"title": "Default",
4-
"keymap": [
5-
[177, 0, 0, 0, 0, 0, 0],
6-
[179, 113, 119, 101, 114, 116, 8],
7-
[128, 97, 115, 100, 102, 103, 0],
8-
[129, 122, 120, 99, 118, 98, 176],
9-
[0, 130, 135, 0, 32, 131, 0]
10-
],
11-
"keyInfo": [
12-
["ESC", "MACRO_0", "MACRO_1", "MACRO_2", "MACRO_3", "MACRO_4", "NULL"],
13-
["TAB", "Q", "W", "E", "R", "T", "DELETE"],
14-
["CTRL", "A", "S", "D", "F", "G", "NULL"],
15-
["SHIFT", "Z", "X", "C", "V", "B", "RETURN"],
16-
["FN", "OPTION", "COMMAND", "NULL", "SPACE", "H", "NULL"]
17-
]
18-
},
19-
{
20-
"title": "Procreate",
21-
"keymap": [
22-
[177, 49, 50, 51, 52, 53, 0],
23-
[179, 115, 119, 101, 91, 93, 8],
24-
[128, 91, 93, 108, 98, 103, 0],
25-
[129, 122, 120, 99, 118, 98, 176],
26-
[0, 130, 131, 0, 32, 131, 0]
27-
],
28-
"keyInfo": [
29-
["ESC", "1", "2", "3", "4", "5", "NULL"],
30-
["TAB", "Select", "W", "Eraser", "BrushDown", "BrushUp", "DELETE"],
31-
["CTRL", "BrushDown", "BrushUp", "Layers", "Brush", "G", "NULL"],
32-
["SHIFT", "Z", "X", "C(Colors)", "V(Transform)", "B", "RETURN"],
33-
["FN", "OPTION", "COMMAND", "NULL", "SPACE", "COMMAND", "NULL"]
34-
]
35-
}
36-
]
1+
{
2+
"keyConfig": [
3+
{
4+
"title": "Default",
5+
"keymap": [
6+
[177, 49, 50, 51, 52, 53, 0],
7+
[179, 113, 119, 101, 114, 116, 8],
8+
[128, 97, 115, 100, 102, 103, 0],
9+
[129, 122, 120, 99, 118, 98, 176],
10+
[0, 130, 131, 0, 32, 131, 0]
11+
],
12+
"keyInfo": [
13+
["Escape", "1", "2", "3", "4", "5", "NULL"],
14+
["Tab", "Q", "W", "E", "R", "T", "Delete"],
15+
["Ctrl", "A", "S", "D", "F", "G", "NULL"],
16+
["Shift", "Z", "X", "C", "V", "B", "Enter"],
17+
["FN", "Option", "Command", "NULL", "Space", "H", "NULL"]
18+
]
19+
},
20+
{
21+
"title": "Procreate",
22+
"keymap": [
23+
[177, 49, 50, 51, 52, 53, 0],
24+
[179, 115, 119, 101, 114, 116, 8],
25+
[128, 91, 93, 108, 98, 103, 0],
26+
[129, 122, 120, 99, 118, 98, 176],
27+
[0, 130, 131, 0, 32, 131, 131]
28+
],
29+
"keyInfo": [
30+
["Escape", "1", "2", "3", "4", "5", "NULL"],
31+
["MACRO_1", "Select", "W", "Eraser", "MACRO_2", "MACRO_3", "Delete"],
32+
[
33+
"Control",
34+
"BrushDown",
35+
"BrushUp",
36+
"Layers",
37+
"Brush",
38+
"MACRO_4",
39+
"NULL"
40+
],
41+
["Shift", "Z", "X", "C(Colors)", "V(Transform)", "B", "Enter"],
42+
["FN", "Option", "Command", "NULL", "Space", "COMMAND", "Command"]
43+
]
44+
},
45+
{
46+
"title": "Numpad",
47+
"keymap": [
48+
[0, 0, 0, 47, 42, 45, 0],
49+
[0, 0, 0, 55, 56, 57, 43],
50+
[0, 0, 0, 52, 53, 54, 0],
51+
[0, 0, 0, 49, 50, 51, 69],
52+
[0, 0, 68, 0, 48, 0, 46]
53+
],
54+
"keyInfo": [
55+
[" ", " ", " ", "/", "*", "-", " "],
56+
[" ", " ", " ", "7", "8", "9", "+"],
57+
[" ", " ", " ", "4", "5", "6", " "],
58+
[" ", " ", " ", "1", "2", "3", "Enter"],
59+
["FN", " ", "Delete", " ", "0", " ", "."]
60+
]
61+
},
62+
{
63+
"title": "Clip Studio Paint",
64+
"keymap": [
65+
[177, 49, 50, 51, 52, 53, 0],
66+
[179, 113, 119, 101, 114, 116, 178],
67+
[128, 97, 115, 100, 102, 103, 0],
68+
[129, 122, 120, 99, 118, 98, 224],
69+
[0, 130, 131, 0, 32, 0, 131]
70+
],
71+
"keyInfo": [
72+
["Escape", "MACRO_5", "MACRO_6", "3", "4", "5", " "],
73+
["Tab", "KeyQ", "KeyW", "KeyE", "KeyR", "KeyT", "Backspace"],
74+
["ControlLeft", "KeyA", "KeyS", "KeyD", "KeyF", "KeyG", " "],
75+
["Shift", "KeyZ", "KeyX", "KeyC", "KeyV", "KeyB", "NumpadEnter"],
76+
["FN", "Option", "Command", " ", "Space", " ", "Command"]
77+
]
78+
}
79+
],
80+
"macros": [
81+
{
82+
"type": 0,
83+
"name": "Task Manager",
84+
"keyStrokes": [128, 130, 212],
85+
"stringContent": ""
86+
},
87+
{
88+
"type": 0,
89+
"name": "Toggle Fullscreen",
90+
"keyStrokes": [131, 48],
91+
"stringContent": ""
92+
},
93+
{
94+
"type": 0,
95+
"name": "Actions Menu",
96+
"keyStrokes": [131, 107],
97+
"stringContent": ""
98+
},
99+
{
100+
"type": 0,
101+
"name": "Perspective Guide",
102+
"keyStrokes": [131, 59],
103+
"stringContent": ""
104+
},
105+
{
106+
"type": 0,
107+
"name": "Copy All Layers",
108+
"keyStrokes": [131, 97],
109+
"stringContent": ""
110+
},
111+
{
112+
"type": 0,
113+
"name": "3D Preview",
114+
"keyStrokes": [131, 129, 130, 128, 51],
115+
"stringContent": ""
116+
},
117+
{
118+
"type": 0,
119+
"name": "Set ICC Preview",
120+
"keyStrokes": [131, 130, 129, 128, 52],
121+
"stringContent": ""
122+
}
123+
],
124+
"rotaryExtension": [
125+
{
126+
"keymap": [97, 98, 99],
127+
"keyInfo": ["c", "c", "c"],
128+
"rotaryMap": [50, 49, 51],
129+
"rotaryInfo": ["Digit2", "Digit1", "Digit3"]
130+
},
131+
{
132+
"keymap": [97, 98, 99],
133+
"keyInfo": ["KeyA", "KeyB", "KeyC"],
134+
"rotaryMap": [104, 91, 93],
135+
"rotaryInfo": ["KeyH", "BracketLeft", "BracketRight"]
136+
},
137+
{
138+
"keymap": [99, 100, 99],
139+
"keyInfo": ["KeyC", "KeyD", "KeyC"],
140+
"rotaryMap": [104, 103, 106],
141+
"rotaryInfo": ["KeyH", "KeyG", "KeyJ"]
142+
}
143+
]
144+
}

0 commit comments

Comments
 (0)