X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/e625fd6df33ab2112779728622a717589f0b8417..588886878e0fe948417123b57c108a1bd7992f85:/Demos/Device/LowLevel/Joystick/Joystick.c?ds=inline diff --git a/Demos/Device/LowLevel/Joystick/Joystick.c b/Demos/Device/LowLevel/Joystick/Joystick.c index 6d04c8fa6..aa5244c15 100644 --- a/Demos/Device/LowLevel/Joystick/Joystick.c +++ b/Demos/Device/LowLevel/Joystick/Joystick.c @@ -156,10 +156,10 @@ bool GetNextReport(USB_JoystickReport_Data_t* ReportData) else if (JoyStatus_LCL & JOY_DOWN) ReportData->Y = 100; - if (JoyStatus_LCL & JOY_RIGHT) - ReportData->X = 100; - else if (JoyStatus_LCL & JOY_LEFT) + if (JoyStatus_LCL & JOY_LEFT) ReportData->X = -100; + else if (JoyStatus_LCL & JOY_RIGHT) + ReportData->X = 100; if (JoyStatus_LCL & JOY_PRESS) ReportData->Button = (1 << 1);