-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathjoystick_nintendo_joycon.go
114 lines (113 loc) · 1.15 KB
/
joystick_nintendo_joycon.go
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package joystick
var joyconPairConfig = joystickConfig{
Name: "Nintendo Switch Joycon Controller Pair",
GUID: "5555",
Axis: []pair{
{
Name: "left_x",
ID: 0,
},
{
Name: "left_y",
ID: 1,
},
{
Name: "right_x",
ID: 2,
},
{
Name: "right_y",
ID: 3,
},
{
Name: "lt",
ID: 4,
},
{
Name: "rt",
ID: 5,
},
},
Buttons: []pair{
{
Name: "a",
ID: 0,
},
{
Name: "b",
ID: 1,
},
{
Name: "x",
ID: 2,
},
{
Name: "y",
ID: 3,
},
{
Name: "up",
ID: 11,
},
{
Name: "down",
ID: 12,
},
{
Name: "left",
ID: 13,
},
{
Name: "right",
ID: 14,
},
{
Name: "lb",
ID: 9,
},
{
Name: "rb",
ID: 10,
},
{
Name: "right_stick",
ID: 8,
},
{
Name: "left_stick",
ID: 7,
},
{
Name: "options",
ID: 15,
},
{
Name: "home",
ID: 5,
},
{
Name: "sr_left",
ID: 17,
},
{
Name: "sl_left",
ID: 19,
},
{
Name: "sr_right",
ID: 16,
},
{
Name: "sl_right",
ID: 18,
},
{
Name: "minus",
ID: 4,
},
{
Name: "plus",
ID: 6,
},
},
}