Skip to content

Instantly share code, notes, and snippets.

@wereii
Created May 31, 2019 09:40
Show Gist options
  • Save wereii/2172c116441436938de91c9fa988e60b to your computer and use it in GitHub Desktop.
Save wereii/2172c116441436938de91c9fa988e60b to your computer and use it in GitHub Desktop.
0x05, 0x01, // Usage Page (Generic Desktop) 0
0x09, 0x04, // Usage (Joystick) 2
0xa1, 0x01, // Collection (Application) 4
0x85, 0x14, // Report ID (20) 6
0x15, 0x00, // Logical Minimum (0) 8
0x25, 0x01, // Logical Maximum (1) 10
0x75, 0x01, // Report Size (1) 12
0x95, 0x20, // Report Count (32) 14
0x05, 0x09, // Usage Page (Button) 16
0x19, 0x01, // Usage Minimum (1) 18
0x29, 0x20, // Usage Maximum (32) 20
0x81, 0x02, // Input (Data,Var,Abs) 22
0x15, 0x00, // Logical Minimum (0) 24
0x25, 0x07, // Logical Maximum (7) 26
0x35, 0x00, // Physical Minimum (0) 28
0x46, 0x3b, 0x01, // Physical Maximum (315) 30
0x75, 0x04, // Report Size (4) 33
0x95, 0x01, // Report Count (1) 35
0x65, 0x14, // Unit (Degrees,EngRotation) 37
0x05, 0x01, // Usage Page (Generic Desktop) 39
0x09, 0x39, // Usage (Hat switch) 41
0x81, 0x42, // Input (Data,Var,Abs,Null) 43
0x05, 0x01, // Usage Page (Generic Desktop) 45
0x09, 0x01, // Usage (Pointer) 47
0xa1, 0x00, // Collection (Physical) 49
0x15, 0x00, // Logical Minimum (0) 51
0x26, 0xff, 0x03, // Logical Maximum (1023) 53
0x75, 0x0a, // Report Size (10) 56
0x95, 0x04, // Report Count (4) 58
0x09, 0x30, // Usage (X) 60
0x09, 0x31, // Usage (Y) 62
0x09, 0x33, // Usage (Rx) 64
0x09, 0x34, // Usage (Ry) 66
0x81, 0x02, // Input (Data,Var,Abs) 68
0xc0, // End Collection 70
0x15, 0x00, // Logical Minimum (0) 71
0x26, 0xff, 0x03, // Logical Maximum (1023) 73
0x75, 0x0a, // Report Size (10) 76
0x95, 0x02, // Report Count (2) 78
0x09, 0x36, // Usage (Slider) 80
0x09, 0x36, // Usage (Slider) 82
0x81, 0x02, // Input (Data,Var,Abs) 84
0xc0, // End Collection 86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment