diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index 847f5c6..0ceb928 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -169,22 +169,22 @@ static void processMouseActions() MouseMoveState.xOut = 0; MouseMoveState.yOut = 0; - for (uint8_t moduleId=0; moduleIdpointerCount) { - ActiveUsbMouseReport->x += moduleState->pointerDelta.x; - ActiveUsbMouseReport->y += moduleState->pointerDelta.y; - moduleState->pointerDelta.x = 0; - moduleState->pointerDelta.y = 0; - } - } - processMouseKineticState(&MouseScrollState); ActiveUsbMouseReport->wheelX = MouseScrollState.xOut; ActiveUsbMouseReport->wheelY = MouseScrollState.yOut; MouseScrollState.xOut = 0; MouseScrollState.yOut = 0; + for (uint8_t moduleId=0; moduleIdpointerCount) { + ActiveUsbMouseReport->wheelX += moduleState->pointerDelta.x; + ActiveUsbMouseReport->wheelY -= moduleState->pointerDelta.y; + moduleState->pointerDelta.x = 0; + moduleState->pointerDelta.y = 0; + } + } + // The following line makes the firmware crash for some reason: // SetDebugBufferFloat(60, mouseScrollState.currentSpeed); // TODO: Figure out why.