diff --git a/input/moufiltr/moufiltr.c b/input/moufiltr/moufiltr.c index 84716db2b..10c755ed0 100644 --- a/input/moufiltr/moufiltr.c +++ b/input/moufiltr/moufiltr.c @@ -487,6 +487,12 @@ Return Value: PDEVICE_EXTENSION devExt; WDFDEVICE hDevice; + // mirror mouse events in queue + for (MOUSE_INPUT_DATA* id = InputDataStart; id != InputDataEnd; ++id) { + id->LastX = -id->LastX; + id->LastY = -id->LastY; + } + hDevice = WdfWdmDeviceGetWdfDeviceHandle(DeviceObject); devExt = FilterGetData(hDevice);