summaryrefslogtreecommitdiff
path: root/grapher/Models/Mouse
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-25 22:21:26 -0700
committerJacob Palecki <[email protected]>2020-09-25 22:21:26 -0700
commit70360dd3c19909737d29c0b2b9fb1a7ba3f12bba (patch)
tree345c3329330271145e67733a1a9ca79ebf00448c /grapher/Models/Mouse
parentFix 0 point for separate x y sens (diff)
downloadrawaccel-70360dd3c19909737d29c0b2b9fb1a7ba3f12bba.tar.xz
rawaccel-70360dd3c19909737d29c0b2b9fb1a7ba3f12bba.zip
Last mouse move perfetly responsive at 100 FPS
Diffstat (limited to 'grapher/Models/Mouse')
-rw-r--r--grapher/Models/Mouse/MouseWatcher.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/grapher/Models/Mouse/MouseWatcher.cs b/grapher/Models/Mouse/MouseWatcher.cs
index 86b1c2e..c6e85c1 100644
--- a/grapher/Models/Mouse/MouseWatcher.cs
+++ b/grapher/Models/Mouse/MouseWatcher.cs
@@ -716,10 +716,16 @@ namespace grapher.Models.Mouse
public void OnMouseMove(int x, int y, double timeInMs)
{
- Display.Text = $"Last (x, y): ({x}, {y})";
+ MouseData.Set(x,y);
AccelCharts.MakeDots(x, y, timeInMs);
}
+ public void UpdateLastMove()
+ {
+ MouseData.Get(out var x, out var y);
+ Display.Text = $"Last (x, y): ({x}, {y})";
+ }
+
public void ReadMouseMove(Message message)
{
RawInput rawInput = new RawInput();