|
|
|
@ -40,7 +40,7 @@ static const uint8_t _hidMultiReportDescriptorGamepad[] PROGMEM = {
|
|
|
|
|
D_LOGICAL_MAXIMUM, 0x01, /* _LOGICAL_MAXIMUM (1) */
|
|
|
|
|
D_REPORT_SIZE, 0x01, /* REPORT_SIZE (1) */
|
|
|
|
|
D_REPORT_COUNT, 0x20, /* REPORT_COUNT (32) */
|
|
|
|
|
D_INPUT, (D_DATA|D_VARIABLE|D_ABSOLUTE), /* INPUT (Data,Var,Abs) */
|
|
|
|
|
D_INPUT, (D_DATA | D_VARIABLE | D_ABSOLUTE), /* INPUT (Data,Var,Abs) */
|
|
|
|
|
/* 4 16bit Axis */
|
|
|
|
|
D_USAGE_PAGE, D_PAGE_GENERIC_DESKTOP, /* USAGE_PAGE (Generic Desktop) */
|
|
|
|
|
D_COLLECTION, D_PHYSICAL, /* COLLECTION (Physical) */
|
|
|
|
@ -52,7 +52,7 @@ static const uint8_t _hidMultiReportDescriptorGamepad[] PROGMEM = {
|
|
|
|
|
D_MULTIBYTE(D_LOGICAL_MAXIMUM), 0xFF, 0x7F, /* _LOGICAL_MAXIMUM (32767) */
|
|
|
|
|
D_REPORT_SIZE, 0x10, /* REPORT_SIZE (16) */
|
|
|
|
|
D_REPORT_COUNT, 0x04, /* REPORT_COUNT (4) */
|
|
|
|
|
D_INPUT, (D_DATA|D_VARIABLE|D_ABSOLUTE), /* INPUT (Data,Var,Abs) */
|
|
|
|
|
D_INPUT, (D_DATA | D_VARIABLE | D_ABSOLUTE), /* INPUT (Data,Var,Abs) */
|
|
|
|
|
/* 2 8bit Axis */
|
|
|
|
|
D_USAGE, 0x32, /* USAGE (Z) */
|
|
|
|
|
D_USAGE, 0x35, /* USAGE (Rz) */
|
|
|
|
@ -60,7 +60,7 @@ static const uint8_t _hidMultiReportDescriptorGamepad[] PROGMEM = {
|
|
|
|
|
D_LOGICAL_MAXIMUM, 0x7F, /* _LOGICAL_MAXIMUM (127) */
|
|
|
|
|
D_REPORT_SIZE, 0x08, /* REPORT_SIZE (8) */
|
|
|
|
|
D_REPORT_COUNT, 0x02, /* REPORT_COUNT (2) */
|
|
|
|
|
D_INPUT, (D_DATA|D_VARIABLE|D_ABSOLUTE), /* INPUT (Data,Var,Abs) */
|
|
|
|
|
D_INPUT, (D_DATA | D_VARIABLE | D_ABSOLUTE), /* INPUT (Data,Var,Abs) */
|
|
|
|
|
D_END_COLLECTION, /* END_COLLECTION */
|
|
|
|
|
|
|
|
|
|
/* 2 Hat Switches */
|
|
|
|
@ -71,7 +71,7 @@ static const uint8_t _hidMultiReportDescriptorGamepad[] PROGMEM = {
|
|
|
|
|
D_LOGICAL_MAXIMUM, 0x08, /* _LOGICAL_MAXIMUM (8) */
|
|
|
|
|
D_REPORT_COUNT, 0x02, /* REPORT_COUNT (2) */
|
|
|
|
|
D_REPORT_SIZE, 0x04, /* REPORT_SIZE (4) */
|
|
|
|
|
D_INPUT, (D_DATA|D_VARIABLE|D_ABSOLUTE), /* INPUT (Data,Var,Abs) */
|
|
|
|
|
D_INPUT, (D_DATA | D_VARIABLE | D_ABSOLUTE), /* INPUT (Data,Var,Abs) */
|
|
|
|
|
D_END_COLLECTION /* END_COLLECTION */
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|