X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/6d67b1df3cb8300612ad7b2f16e6bffe08fb8f30..6c7ed7ecd6d4727e33ddb8c5e4321499a2b76151:/Demos/Device/ClassDriver/Joystick/Joystick.c diff --git a/Demos/Device/ClassDriver/Joystick/Joystick.c b/Demos/Device/ClassDriver/Joystick/Joystick.c index abb599248..6e9f4ee72 100644 --- a/Demos/Device/ClassDriver/Joystick/Joystick.c +++ b/Demos/Device/ClassDriver/Joystick/Joystick.c @@ -160,7 +160,7 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn JoystickReport->X = 100; if (JoyStatus_LCL & JOY_PRESS) - JoystickReport->Button = (1 << 1); + JoystickReport->Button |= (1 << 1); if (ButtonStatus_LCL & BUTTONS_BUTTON1) JoystickReport->Button |= (1 << 0);