1.7 KiB
1.7 KiB
https://steamdecklinux.wiki/wiki/Main_Page
https://github.com/torvalds/linux/blob/master/drivers/hid/hid-steam.c
look at steam_raw_event
https://github.com/rodrigorc/inputmap.git
** https://github.com/rodrigorc/inputmap/blob/master/STEAM.md !!!!!!!!!!!!!!!!! **
(root@steamdeck /)# cat usr/lib/udev/rules.d/70-steam-jupiter-input.rules
# USB devices
SUBSYSTEM=="usb", TAG+="uaccess"
# HID devices over hidraw
KERNEL=="hidraw*", TAG+="uaccess"
# Steam Controller udev write access
KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"
(root@steamdeck /)#
--
steamdeck in steamctrl on master [?] via C v11.3.0-gcc via ❄️ impure (shell)
❯ sudo src/steamctrl --device /dev/hidraw3 get_serial
FWAA207022
the report descriptor run through https://eleccelerator.com/usbdescreqparser/
0x06, 0xFF, 0xFF, // Usage Page (Vendor Defined 0xFFFF)
0x09, 0x01, // Usage (0x01)
0xA1, 0x01, // Collection (Application)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x40, // Report Count (64)
0x09, 0x01, // Usage (0x01)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x09, 0x01, // Usage (0x01)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x01, // Usage (0x01)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
// 29 bytes