Remove the old mouse HID report descriptor.
This commit is contained in:
@@ -1,44 +1,6 @@
|
||||
#include <stdint.h>
|
||||
#include "usb_report_item_macros.h"
|
||||
#include "usb_descriptor_mouse_report.h"
|
||||
/*
|
||||
uint8_t UsbMouseReportDescriptor[USB_MOUSE_REPORT_DESCRIPTOR_LENGTH] = {
|
||||
0x05U, 0x01U, // Usage Page (Generic Desktop)
|
||||
0x09U, 0x02U, // Usage (Mouse)
|
||||
0xA1U, 0x01U, // Collection (Application)
|
||||
0x09U, 0x01U, // Usage (Pointer)
|
||||
|
||||
0xA1U, 0x00U, // Collection (Physical)
|
||||
0x05U, 0x09U, // Usage Page (Buttons)
|
||||
0x19U, 0x01U, // Usage Minimum (01U)
|
||||
0x29U, 0x03U, // Usage Maximum (03U)
|
||||
|
||||
0x15U, 0x00U, // Logical Minimum (0U)
|
||||
0x25U, 0x01U, // Logical Maximum (1U)
|
||||
0x95U, 0x03U, // Report Count (3U)
|
||||
0x75U, 0x01U, // Report Size (1U)
|
||||
|
||||
0x81U, 0x02U, // Input(Data, Variable, Absolute) 3U button bit fields
|
||||
0x95U, 0x01U, // Report count (1U)
|
||||
0x75U, 0x05U, // Report Size (5U)
|
||||
0x81U, 0x01U, // Input (Constant), 5U constant field
|
||||
|
||||
0x05U, 0x01U, // Usage Page (Generic Desktop)
|
||||
0x09U, 0x30U, // Usage (X)
|
||||
0x09U, 0x31U, // Usage (Y)
|
||||
0x09U, 0x38U, // Usage (Z)
|
||||
|
||||
0x15U, 0x81U, // Logical Minimum (-127)
|
||||
0x25U, 0x7FU, // Logical Maximum (127)
|
||||
0x75U, 0x08U, // Report Size (8U)
|
||||
0x95U, 0x03U, // Report Count (3U)
|
||||
|
||||
0x81U, 0x06U, // Input (Data, Variable, Relative), 3 position bytes (X & Y & Z)
|
||||
0xC0U, // End collection, Close Pointer collection
|
||||
0xC0U // End collection, Close Mouse collection
|
||||
|
||||
};
|
||||
*/
|
||||
|
||||
uint8_t UsbMouseReportDescriptor[USB_MOUSE_REPORT_DESCRIPTOR_LENGTH] = {
|
||||
HID_RI_USAGE_PAGE(8, HID_RI_USAGE_PAGE_GENERIC_DESKTOP),
|
||||
|
||||
Reference in New Issue
Block a user