Don't clear the whole report

This commit is contained in:
Eric Tang
2018-06-26 15:59:51 -07:00
parent 633a6cec77
commit 0e9525ce9a

View File

@@ -321,7 +321,8 @@ bool processMoveMouseAction(void)
static bool inMotion;
if (inMotion) {
memset(&MacroMouseReport, 0, sizeof MacroMouseReport);
MacroMouseReport.x = 0;
MacroMouseReport.y = 0;
inMotion = false;
} else {
MacroMouseReport.x = currentMacroAction.moveMouse.x;
@@ -336,7 +337,8 @@ bool processScrollMouseAction(void)
static bool inMotion;
if (inMotion) {
memset(&MacroMouseReport, 0, sizeof MacroMouseReport);
MacroMouseReport.wheelX = 0;
MacroMouseReport.wheelY = 0;
inMotion = false;
} else {
MacroMouseReport.wheelX = currentMacroAction.scrollMouse.x;