Added new HID_DESCRIPTOR_MOUSE, HID_DESCRIPTOR_KEYBOARD and HID_DESCRIPTOR_JOYSTICK macros for easy automatic creation of basic USB HID device reports.
This commit is contained in:
parent
6d67b1df3c
commit
6c7ed7ecd6
12 changed files with 208 additions and 213 deletions
|
@ -290,7 +290,7 @@ void Mouse_HID_Task(void)
|
|||
MouseReportData.X = -1;
|
||||
|
||||
if (JoyStatus_LCL & JOY_PRESS)
|
||||
MouseReportData.Button = (1 << 0);
|
||||
MouseReportData.Button |= (1 << 0);
|
||||
}
|
||||
|
||||
/* Select the Mouse Report Endpoint */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue