Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions input/moufiltr/moufiltr.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,15 @@ Return Value:
PDEVICE_EXTENSION devExt;
WDFDEVICE hDevice;

// mirror mouse events in queue
for (MOUSE_INPUT_DATA* id = InputDataStart; id != InputDataEnd; ++id) {
if (!(id->Flags & MOUSE_MOVE_ABSOLUTE)) {
// invert relative mouse movement
id->LastX = -id->LastX;
id->LastY = -id->LastY;
}
}

hDevice = WdfWdmDeviceGetWdfDeviceHandle(DeviceObject);

devExt = FilterGetData(hDevice);
Expand Down