diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-16 12:25:31 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-16 12:25:31 +0000 |
commit | 2b51944a4bf6123ca5fb59bd967b8f4a1fa944e1 (patch) | |
tree | 3bee44fa7a07cad7ecdbaf88db913e82726778e8 /Demos/DualRole | |
parent | 015956baba318c14a1e83cb1e2225aa07f99f8d2 (diff) | |
download | lufa-2b51944a4bf6123ca5fb59bd967b8f4a1fa944e1.tar.gz lufa-2b51944a4bf6123ca5fb59bd967b8f4a1fa944e1.tar.bz2 lufa-2b51944a4bf6123ca5fb59bd967b8f4a1fa944e1.zip |
Make sure the button report set masks use OR in all circumstances, to prevent user confusion. While the first set of the buttons report item can be a direct assignment, it is not immediately clear to new developers why this is the case.
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);
|