mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 08:26:59 +08:00
Update to FreeBSD head 2018-06-01
Git mirror commit fb63610a69b0eb7f69a201ba05c4c1a7a2739cf9. Update #3472.
This commit is contained in:
@@ -276,3 +276,31 @@
|
||||
0x81, 0x01, /* INPUT (Constant) */\
|
||||
0xc0 /* END COLLECTION */\
|
||||
|
||||
/* Fixed report descriptor for Super Nintendo gamepads */
|
||||
#define UHID_SNES_REPORT_DESCR(...) \
|
||||
0x05, 0x01, /* Usage Page (Desktop), */\
|
||||
0x09, 0x04, /* Usage (Joystik), */\
|
||||
0xA1, 0x01, /* Collection (Application), */\
|
||||
0xA1, 0x02, /* Collection (Logical), */\
|
||||
0x14, /* Logical Minimum (0), */\
|
||||
0x75, 0x08, /* Report Size (8), */\
|
||||
0x95, 0x03, /* Report Count (3), */\
|
||||
0x81, 0x01, /* Input (Constant), */\
|
||||
0x26, 0xFF, 0x00, /* Logical Maximum (255), */\
|
||||
0x95, 0x02, /* Report Count (2), */\
|
||||
0x09, 0x30, /* Usage (X), */\
|
||||
0x09, 0x31, /* Usage (Y), */\
|
||||
0x81, 0x02, /* Input (Variable), */\
|
||||
0x75, 0x01, /* Report Size (1), */\
|
||||
0x95, 0x04, /* Report Count (4), */\
|
||||
0x81, 0x01, /* Input (Constant), */\
|
||||
0x25, 0x01, /* Logical Maximum (1), */\
|
||||
0x95, 0x0A, /* Report Count (10), */\
|
||||
0x05, 0x09, /* Usage Page (Button), */\
|
||||
0x19, 0x01, /* Usage Minimum (01h), */\
|
||||
0x29, 0x0A, /* Usage Maximum (0Ah), */\
|
||||
0x81, 0x02, /* Input (Variable), */\
|
||||
0x95, 0x0A, /* Report Count (10), */\
|
||||
0x81, 0x01, /* Input (Constant), */\
|
||||
0xC0, /* End Collection, */\
|
||||
0xC0 /* End Collection */
|
||||
|
Reference in New Issue
Block a user