From 98de0eaac2f6d780da8ff4ad9533dad10be40204 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Thu, 1 Apr 2021 18:15:50 -0400 Subject: add flag to negate device match --- driver/driver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'driver/driver.cpp') diff --git a/driver/driver.cpp b/driver/driver.cpp index fbc2d3d..ec340ea 100644 --- a/driver/driver.cpp +++ b/driver/driver.cpp @@ -55,8 +55,9 @@ Arguments: bool any = num_packets > 0; bool rel_move = !(InputDataStart->Flags & MOUSE_MOVE_ABSOLUTE); - bool dev_match = global.args.device_id[0] == 0 || - wcsncmp(devExt->dev_id, global.args.device_id, ra::MAX_DEV_ID_LEN) == 0; + bool dev_match = global.args.device_id[0] == 0 || + global.args.ignore == + bool(wcsncmp(devExt->dev_id, global.args.device_id, ra::MAX_DEV_ID_LEN)); if (any && rel_move && dev_match) { // if IO is backed up to the point where we get more than 1 packet here -- cgit v1.2.3