-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.js
78 lines (74 loc) · 915 Bytes
/
const.js
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
const buttons = {
X: 1,
A: 2,
B: 3,
Y: 4,
LT: 5,
RT: 6,
LB: 7,
RB: 8,
ESC: 9,
MENU: 10,
LS: 11,
RS: 12,
};
const axes = {
LSU: 'Y',
LSL: 'X',
LSD: 'Y',
LSR: 'X',
RSU: 'Ry',
RSL: 'Rx',
RSD: 'Ry',
RSR: 'Rx',
};
const POVs = {
U: 0,
L: 3,
D: 2,
R: 1,
};
const axisNames = [
'X',
'Y',
'Z',
'Rx',
'Ry',
'Rz',
'Slider0',
'Slider1',
'Wheel',
'POV',
];
module.exports = {
buttons,
axes,
POVs,
axisNames,
};
const preferredKeyMap = {
X: 'KeyA', // kick
A: 'KeyS', // pass
B: 'KeyD', // loft pass
Y: 'KeyW', // through pass
LT: 'KeyZ',
RT: 'KeyC',
LB: 'KeyQ',
RB: 'KeyE',
ESC: 'KeyR',
MENU: 'KeyB',
LS: 'Digit1',
RS: 'Digit2',
LSU: 'KeyI',
LSL: 'KeyJ',
LSD: 'KeyK',
LSR: 'KeyL',
RSU: 'KeyT',
RSL: 'KeyF',
RSD: 'KeyV',
RSR: 'KeyG',
U: 'ArrowUp',
L: 'ArrowLeft',
D: 'ArrowDown',
R: 'ArrowRight',
};