-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrollerMapping.txt
More file actions
executable file
·53 lines (46 loc) · 936 Bytes
/
Copy pathcontrollerMapping.txt
File metadata and controls
executable file
·53 lines (46 loc) · 936 Bytes
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
cat /proc/bus/input/devices
event 3
lHorizontal=ABS_X //correct
lVertical=ABS_Y //incorrect
rHorizontal=ABS_RX //correct
rVertical=ABS_RY //incorrect
horizontal=ABS_HAT0X //correct, left is neg 1, right is pos 1
vertical=ABS_HAT0Y //incorrect
//buttons
a=BTN_SOUTH
b=BTN_EAST
x=BTN_NORTH
y=BTN_WEST
LB=BTN_TL
RB=BTN_TR
LT=BTN_TL2
RT=BTN_TR2
select=BTN_SELECT
start=BTN_START
menu=BTN_MODE
lClick=BTN_THUMBL
rClick=BTN_THUMBR
/*___________________________________________________________________________________________*/
js1
//Axes
lHorizontal=0 //correct
lVertical=1 //incorrect
rHorizontal=2 //correct
rVertical=3 //incorrect
//dpad
horizontal=4 //correct, left is negative, right is positive
vertical=5 //incorrect, backwards. currently, up is negative down is positive
//Buttons
a=0
b=1
x=2
y=3
LB=4
RB=5
LT=6
RT=7
select=8
start=9
menu=10
lClick=11
rClick=12