hybridgroup.gobot/platforms/joystick/joystick_shield.go

79 lines
798 B
Go
Raw Permalink Normal View History

package joystick
var shieldConfig = joystickConfig{
Name: "Nvidia SHIELD Controller",
GUID: "3333",
Axis: []pair{
{
Name: "left_x",
ID: 0,
},
{
Name: "left_y",
ID: 1,
},
{
Name: "right_x",
ID: 2,
},
{
Name: "right_y",
ID: 3,
},
{
Name: "rt",
ID: 4,
},
{
Name: "lt",
ID: 5,
},
},
Buttons: []pair{
{
Name: "x",
ID: 2,
},
{
Name: "a",
ID: 0,
},
{
Name: "b",
ID: 1,
},
{
Name: "y",
ID: 3,
},
{
Name: "lb",
ID: 4,
},
{
Name: "rb",
ID: 5,
},
{
Name: "back",
ID: 14,
},
{
Name: "start",
ID: 7,
},
{
Name: "home",
ID: 15,
},
{
Name: "right_stick",
ID: 8,
},
{
Name: "left_stick",
ID: 9,
},
},
}