Skip to content

Commit

Permalink
testevdev: Add the virtual X360 controller created by Steam Input
Browse files Browse the repository at this point in the history
Thanks: Robert Beckett
Signed-off-by: Simon McVittie <smcv@collabora.com>
  • Loading branch information
smcv authored and slouken committed Jun 21, 2024
1 parent f471392 commit c244eb9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/testevdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,25 @@ static const GuessTest guess_tests[] =
.hid_report_descriptor_length = sizeof (steam_deck_oled_js_hid_report_descriptor),
.hid_report_descriptor = &steam_deck_oled_js_hid_report_descriptor[0],
},
{
.name = "Steam Input virtual controller",
.eviocgname = "Microsoft X-Box 360 pad 0",
.bus_type = 0x0003,
.vendor_id = 0x28de,
.product_id = 0x11ff,
.version = 0x0001,
.expected = SDL_UDEV_DEVICE_JOYSTICK,
/* SYN, KEY, ABS, FF */
.ev = { 0x0b, 0x00, 0x20 },
/* XYZ, RXYZ, hat 0 */
.abs = { 0x3f, 0x00, 0x03 },
.keys = {
/* 0x00-0xff */ ZEROx8, ZEROx8, ZEROx8, ZEROx8,
/* 0x130 0xdb: gamepad ABXY, TL/TR */
/* 0x138 0x7f: gamepad SELECT/START, MODE, THUMBL/R */
/* 0x100 */ ZEROx4, 0x00, 0x00, 0xdb, 0x7c,
},
},
{
.name = "Guitar Hero for PS3",
/* SWITCH CO.,LTD. Controller (Dinput) off-brand N64-style USB controller
Expand Down

0 comments on commit c244eb9

Please sign in to comment.