X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/e625fd6df33ab2112779728622a717589f0b8417..588886878e0fe948417123b57c108a1bd7992f85:/Demos/Device/LowLevel/Mouse/Mouse.c diff --git a/Demos/Device/LowLevel/Mouse/Mouse.c b/Demos/Device/LowLevel/Mouse/Mouse.c index 2f7a63f7f..4b318e30c 100644 --- a/Demos/Device/LowLevel/Mouse/Mouse.c +++ b/Demos/Device/LowLevel/Mouse/Mouse.c @@ -238,10 +238,10 @@ void CreateMouseReport(USB_MouseReport_Data_t* ReportData) else if (JoyStatus_LCL & JOY_DOWN) ReportData->Y = 1; - if (JoyStatus_LCL & JOY_RIGHT) - ReportData->X = 1; - else if (JoyStatus_LCL & JOY_LEFT) + if (JoyStatus_LCL & JOY_LEFT) ReportData->X = -1; + else if (JoyStatus_LCL & JOY_RIGHT) + ReportData->X = 1; if (JoyStatus_LCL & JOY_PRESS) ReportData->Button = (1 << 0);