diff options
Diffstat (limited to 'Demos/DualRole')
-rw-r--r-- | Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.c b/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.c index b07c2be31..0ae28255c 100644 --- a/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.c +++ b/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.c @@ -123,7 +123,7 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn MouseReport->X = -1;
if (JoyStatus_LCL & JOY_PRESS)
- MouseReport->Button = (1 << 0);
+ MouseReport->Button |= (1 << 0);
if (ButtonStatus_LCL & BUTTONS_BUTTON1)
MouseReport->Button |= (1 << 1);
|