summaryrefslogtreecommitdiff
path: root/grapher/Models/Mouse/MouseWatcher.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-12-03 20:01:49 -0500
committera1xd <[email protected]>2020-12-03 20:01:49 -0500
commitc5c3c2a8a841d664a422380ab31497b3f741f07f (patch)
tree2418351be8e791e06b781b6426da581332538712 /grapher/Models/Mouse/MouseWatcher.cs
parentadd directional multipliers (diff)
downloadrawaccel-c5c3c2a8a841d664a422380ab31497b3f741f07f.tar.xz
rawaccel-c5c3c2a8a841d664a422380ab31497b3f741f07f.zip
filter out abs move raw input
Diffstat (limited to 'grapher/Models/Mouse/MouseWatcher.cs')
-rw-r--r--grapher/Models/Mouse/MouseWatcher.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/grapher/Models/Mouse/MouseWatcher.cs b/grapher/Models/Mouse/MouseWatcher.cs
index 66e72bb..68b56e5 100644
--- a/grapher/Models/Mouse/MouseWatcher.cs
+++ b/grapher/Models/Mouse/MouseWatcher.cs
@@ -741,7 +741,9 @@ namespace grapher.Models.Mouse
PollTimeRecip = Math.Abs(SettingsManager.PollRateField.Data) / 1000;
}
- if (rawInput.Data.Mouse.LastX != 0 || rawInput.Data.Mouse.LastY != 0)
+ bool relative = !rawInput.Data.Mouse.Flags.HasFlag(RawMouseFlags.MoveAbsolute);
+
+ if (relative && (rawInput.Data.Mouse.LastX != 0 || rawInput.Data.Mouse.LastY != 0))
{
double x = rawInput.Data.Mouse.LastX;
double y = rawInput.Data.Mouse.LastY;