blob: 81ca51f1962c645a275ce6ac84c3ceb7e7f8ea8e [file] [log] [blame]
[
{
// This device produces a MOVE with coordinates in generic axes due to the HID usage
// mapping of HAT1X/HAT1Y by kernel.
"name": "Initial check - Ignore move event.",
"reports": [
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {}}
]
},
{
"name": "Press left DPAD key",
"reports": [
[0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_HAT_X": -1}},
{"action": "MOVE", "axes": {"AXIS_HAT_X": 0}}
]
},
{
"name": "Press right DPAD key",
"reports": [
[0x00, 0x00, 0x00, 0x00, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_HAT_X": 1}},
{"action": "MOVE", "axes": {"AXIS_HAT_X": 0}}
]
},
{
"name": "Press up DPAD key",
"reports": [
[0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_HAT_Y": -1}},
{"action": "MOVE", "axes": {"AXIS_HAT_Y": 0}}
]
},
{
"name": "Press down DPAD key",
"reports": [
[0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_HAT_Y": 1}},
{"action": "MOVE", "axes": {"AXIS_HAT_Y": 0}}
]
},
{
"name": "Left stick - press left",
"reports": [
[0xc0, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x80, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_X": -0.5}},
{"action": "MOVE", "axes": {"AXIS_X": -1}},
{"action": "MOVE", "axes": {"AXIS_X": 0}}
]
},
{
"name": "Left stick - press right",
"reports": [
[0x3f, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x7f, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_X": 0.5}},
{"action": "MOVE", "axes": {"AXIS_X": 1}},
{"action": "MOVE", "axes": {"AXIS_X": 0}}
]
},
{
"name": "Left stick - press up",
"reports": [
[0x00, 0xc0, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x80, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_Y": -0.5}},
{"action": "MOVE", "axes": {"AXIS_Y": -1}},
{"action": "MOVE", "axes": {"AXIS_Y": 0}}
]
},
{
"name": "Left stick - press down",
"reports": [
[0x00, 0x3f, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x7f, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_Y": 0.5}},
{"action": "MOVE", "axes": {"AXIS_Y": 1}},
{"action": "MOVE", "axes": {"AXIS_Y": 0}}
]
},
{
"name": "Right stick - press left",
"reports": [
[0x00, 0x00, 0xc0, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_Z": -0.5}},
{"action": "MOVE", "axes": {"AXIS_Z": -1}},
{"action": "MOVE", "axes": {"AXIS_Z": 0}}
]
},
{
"name": "Right stick - press right",
"reports": [
[0x00, 0x00, 0x3f, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x7f, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_Z": 0.5}},
{"action": "MOVE", "axes": {"AXIS_Z": 1}},
{"action": "MOVE", "axes": {"AXIS_Z": 0}}
]
},
{
"name": "Right stick - press up",
"reports": [
[0x00, 0x00, 0x00, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_RZ": -0.5}},
{"action": "MOVE", "axes": {"AXIS_RZ": -1}},
{"action": "MOVE", "axes": {"AXIS_RZ": 0}}
]
},
{
"name": "Right stick - press down",
"reports": [
[0x00, 0x00, 0x00, 0x3f, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x7f, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": {"AXIS_RZ": 0.5}},
{"action": "MOVE", "axes": {"AXIS_RZ": 1}},
{"action": "MOVE", "axes": {"AXIS_RZ": 0}}
]
},
{
"name": "Left trigger - quick press",
"reports": [
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": { "AXIS_LTRIGGER": 0.5, "AXIS_BRAKE": 0.5}},
{"action": "MOVE", "axes": { "AXIS_LTRIGGER": 1.0, "AXIS_BRAKE": 1.0}},
{"action": "MOVE", "axes": { "AXIS_LTRIGGER": 0.0, "AXIS_BRAKE": 0.0}}
]
},
{
"name": "Right trigger - quick press",
"reports": [
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00],
[0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
],
"source": "JOYSTICK",
"events": [
{"action": "MOVE", "axes": { "AXIS_RTRIGGER": 0.5, "AXIS_GAS": 0.5}},
{"action": "MOVE", "axes": { "AXIS_RTRIGGER": 1.0, "AXIS_GAS": 1.0}},
{"action": "MOVE", "axes": { "AXIS_RTRIGGER": 0.0, "AXIS_GAS": 0.0}}
]
}
]