Skip to content

Instantly share code, notes, and snippets.

View aaronfranco's full-sized avatar

Aaron G Franco aaronfranco

  • New York
View GitHub Profile
@fendent
fendent / xbox360hid.h
Created June 4, 2013 21:41
The XBox360 HID descriptor
char ReportDescriptor[196] = {
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x05, // USAGE (Game Pad)
0xa1, 0x01, // COLLECTION (Application)
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x3a, // USAGE (Counted Buffer)
0xa1, 0x02, // COLLECTION (Logical)
0x75, 0x08, // REPORT_SIZE (8)
0x95, 0x02, // REPORT_COUNT (2)
0x05, 0x01, // USAGE_PAGE (Generic Desktop)