diff options
| author | a1xd <[email protected]> | 2021-04-01 18:15:50 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-04-01 18:15:50 -0400 |
| commit | 98de0eaac2f6d780da8ff4ad9533dad10be40204 (patch) | |
| tree | f295f53fe6f3d29517dfc0f63a3b4699b083d4e2 /driver/driver.cpp | |
| parent | update rest (diff) | |
| download | rawaccel-98de0eaac2f6d780da8ff4ad9533dad10be40204.tar.xz rawaccel-98de0eaac2f6d780da8ff4ad9533dad10be40204.zip | |
add flag to negate device match
Diffstat (limited to 'driver/driver.cpp')
| -rw-r--r-- | driver/driver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 |