2020-03-13 16:39:48 +08:00
|
|
|
package joystick
|
|
|
|
|
|
|
|
var shieldConfig = joystickConfig{
|
|
|
|
Name: "Nvidia SHIELD Controller",
|
|
|
|
GUID: "3333",
|
|
|
|
Axis: []pair{
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "left_x",
|
|
|
|
ID: 0,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "left_y",
|
|
|
|
ID: 1,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "right_x",
|
|
|
|
ID: 2,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "right_y",
|
|
|
|
ID: 3,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "rt",
|
|
|
|
ID: 4,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "lt",
|
|
|
|
ID: 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Buttons: []pair{
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "x",
|
|
|
|
ID: 2,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "a",
|
|
|
|
ID: 0,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "b",
|
|
|
|
ID: 1,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "y",
|
|
|
|
ID: 3,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "lb",
|
|
|
|
ID: 4,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "rb",
|
|
|
|
ID: 5,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "back",
|
|
|
|
ID: 14,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "start",
|
|
|
|
ID: 7,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "home",
|
|
|
|
ID: 15,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "right_stick",
|
|
|
|
ID: 8,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2020-03-13 16:39:48 +08:00
|
|
|
Name: "left_stick",
|
|
|
|
ID: 9,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|