Skip to content

Commit 775c3d9

Browse files
committed
添加shift疾跑功能;添加后台管理页面;
1 parent 0c8329c commit 775c3d9

38 files changed

Lines changed: 1247 additions & 2510 deletions

.github/workflows/go-build-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v3
1313

14+
- name: Setup Node.js environment
15+
uses: actions/setup-node@v3.8.0
16+
17+
- name: install
18+
run: cd go-touch-mapper-gh-pages && yarn install
19+
20+
- name: build
21+
run: cd go-touch-mapper-gh-pages && yarn build || true
22+
1423
- name: Set up Go
1524
uses: actions/setup-go@v3
1625
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
remote_control/build/remote_control/
33
go-touch-mapper
44
go-touch-mapper_arm64
5+
go-touch-mapper-gh-pages/build

configs/2kscale/2ksmc.jpg

-778 KB
Binary file not shown.

configs/2kscale/2ksmc.json

Lines changed: 0 additions & 111 deletions
This file was deleted.

configs/EXAMPLE.JSON

Lines changed: 12 additions & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"SCREEN": {
33
"SIZE": [
4-
1440,
5-
3120
4+
1920,
5+
1080
66
]
77
},
88
"MOUSE": {
99
"SWITCH_KEY": "KEY_GRAVE",
1010
"POS": [
11-
720,
12-
2140
11+
0.6,
12+
0.5
1313
],
1414
"SPEED": [
1515
1,
@@ -18,10 +18,12 @@
1818
},
1919
"WHEEL": {
2020
"POS": [
21-
388,
22-
405
21+
0.2,
22+
0.8
2323
],
24-
"RANGE": 384,
24+
"RANGE": 0.07,
25+
"SHIFT_RANGE": 0.099,
26+
"SHIFT_RANGE_ENABLE": true,
2527
"WASD": [
2628
"KEY_W",
2729
"KEY_A",
@@ -31,167 +33,11 @@
3133
},
3234
"KEY_MAPS": {
3335
"BTN_LEFT": {
34-
"TYPE": "MULT_PRESS",
35-
"POS_S": [
36-
[ 745, 1000 ],
37-
[ 745, 1100 ],
38-
[ 745, 1200 ],
39-
[ 745, 1300 ],
40-
[ 745, 1400 ],
41-
[ 745, 1500 ],
42-
[ 745, 1600 ],
43-
[ 745, 1700 ],
44-
[ 745, 1800 ],
45-
[ 745, 1900 ],
46-
[ 745, 2000 ],
47-
[ 745, 2100 ],
48-
[ 745, 2200 ],
49-
[ 745, 2300 ],
50-
[ 745, 2400 ],
51-
[ 745, 2500 ],
52-
[ 745, 2600 ],
53-
[ 745, 2700 ],
54-
[ 745, 2800 ],
55-
[ 745, 2900 ],
56-
[ 745, 3000 ]
57-
],
58-
"INTERVAL": [20]
59-
},
60-
"BTN_RIGHT": {
6136
"TYPE": "PRESS",
6237
"POS": [
63-
352,
64-
2467
65-
]
66-
},
67-
"BTN_LB": {
68-
"TYPE": "PRESS",
69-
"POS": [
70-
452,
71-
3009
72-
]
73-
},
74-
"BTN_LT_2": {
75-
"TYPE": "PRESS",
76-
"POS": [
77-
107,
78-
2757
79-
]
80-
},
81-
"BTN_DPAD_LEFT": {
82-
"TYPE": "PRESS",
83-
"POS": [
84-
1252,
85-
2890
86-
]
87-
},
88-
"BTN_DPAD_UP": {
89-
"TYPE": "PRESS",
90-
"POS": [
91-
1116,
92-
2900
93-
]
94-
},
95-
"BTN_DPAD_RIGHT": {
96-
"TYPE": "PRESS",
97-
"POS": [
98-
981,
99-
2900
100-
]
101-
},
102-
"BTN_LS": {
103-
"TYPE": "PRESS",
104-
"POS": [
105-
100,
106-
2493
107-
]
108-
},
109-
"BTN_DPAD_DOWN": {
110-
"TYPE": "PRESS",
111-
"POS": [
112-
254,
113-
1563
114-
]
115-
},
116-
"KEY_E": {
117-
"TYPE": "PRESS",
118-
"POS": [
119-
369,
120-
2464
121-
]
122-
},
123-
"KEY_TAB": {
124-
"TYPE": "PRESS",
125-
"POS": [
126-
1401,
127-
1542
128-
]
129-
},
130-
"KEY_1": {
131-
"TYPE": "PRESS",
132-
"POS": [
133-
1269,
134-
2897
135-
]
136-
},
137-
"KEY_2": {
138-
"TYPE": "PRESS",
139-
"POS": [
140-
1120,
141-
2883
142-
]
143-
},
144-
"KEY_3": {
145-
"TYPE": "PRESS",
146-
"POS": [
147-
969,
148-
2891
149-
]
150-
},
151-
"KEY_R": {
152-
"TYPE": "PRESS",
153-
"POS": [
154-
120,
155-
2499
156-
]
157-
},
158-
"KEY_LEFTSHIFT": {
159-
"TYPE": "PRESS",
160-
"POS": [
161-
111,
162-
2763
163-
]
164-
},
165-
"KEY_C": {
166-
"TYPE": "PRESS",
167-
"POS": [
168-
215,
169-
3000
170-
]
171-
},
172-
"KEY_SPACE": {
173-
"TYPE": "PRESS",
174-
"POS": [
175-
445,
176-
3011
177-
]
178-
},
179-
"KEY_Q": {
180-
"TYPE": "AUTO_FIRE",
181-
"POS": [
182-
247,
183-
1555
184-
],
185-
"INTERVAL":[20,20]
186-
},
187-
"KEY_T": {
188-
"TYPE": "PRESS",
189-
"POS": [
190-
115,
191-
1984
38+
0.8,
39+
0.6
19240
]
19341
}
19442
}
195-
}
196-
197-
43+
}

0 commit comments

Comments
 (0)