2023-03-24 02:14:02 +08:00
|
|
|
package joystick
|
|
|
|
|
|
|
|
var joyconPairConfig = joystickConfig{
|
|
|
|
Name: "Nintendo Switch Joycon Controller Pair",
|
|
|
|
GUID: "5555",
|
|
|
|
Axis: []pair{
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "left_x",
|
|
|
|
ID: 0,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "left_y",
|
|
|
|
ID: 1,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "right_x",
|
|
|
|
ID: 2,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "right_y",
|
|
|
|
ID: 3,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "lt",
|
|
|
|
ID: 4,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "rt",
|
|
|
|
ID: 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Buttons: []pair{
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "a",
|
|
|
|
ID: 0,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "b",
|
|
|
|
ID: 1,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "x",
|
|
|
|
ID: 2,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "y",
|
|
|
|
ID: 3,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "up",
|
|
|
|
ID: 11,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "down",
|
|
|
|
ID: 12,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "left",
|
|
|
|
ID: 13,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "right",
|
|
|
|
ID: 14,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "lb",
|
|
|
|
ID: 9,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "rb",
|
|
|
|
ID: 10,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "right_stick",
|
|
|
|
ID: 8,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "left_stick",
|
|
|
|
ID: 7,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "options",
|
|
|
|
ID: 15,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "home",
|
|
|
|
ID: 5,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "sr_left",
|
|
|
|
ID: 17,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "sl_left",
|
|
|
|
ID: 19,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "sr_right",
|
|
|
|
ID: 16,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "sl_right",
|
|
|
|
ID: 18,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "minus",
|
|
|
|
ID: 4,
|
|
|
|
},
|
2023-06-19 00:10:46 +08:00
|
|
|
{
|
2023-03-24 02:14:02 +08:00
|
|
|
Name: "plus",
|
|
|
|
ID: 6,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|