Skip to content
Snippets Groups Projects
Commit 07514b25 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Add details of Sony DualSense (PS5) controller


We only have details of the gamepad part for now. I've asked whether it
also has accelerometer and touchpad device nodes like the PS4 controller
did.

Thanks: Sam Lantinga
Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent b5cdb9b4
No related branches found
No related tags found
No related merge requests found
Pipeline #5315 passed
......@@ -695,6 +695,24 @@ static const GuessTest guess_tests[] =
/* 0x100 */ ZEROx4, 0x00, 0x00, 0xdb, 0x7c,
},
},
{
.name = "DualSense (PS5) - gamepad",
.bus_type = 0x0003,
.vendor_id = 0x054c,
.product_id = 0x0ce6,
.version = 0x111,
.expected = SRT_INPUT_DEVICE_TYPE_FLAGS_JOYSTICK,
/* SYN, KEY, ABS */
.ev = { 0x0b },
/* X, Y, Z, RX, RY, RZ, HAT0X, HAT0Y */
.abs = { 0x3f, 0x00, 0x03 },
.keys = {
/* 0x00-0xff */ ZEROx8, ZEROx8, ZEROx8, ZEROx8,
/* ABC, XYZ, TL, TR, TL2, TR2, select, start, mode, thumbl,
* thumbr */
/* 0x100 */ ZEROx4, 0x00, 0x00, 0xff, 0x7f,
},
},
{
.name = "DualShock 4 - gamepad",
.bus_type = 0x0003,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment