summaryrefslogtreecommitdiff
path: root/grapher/Models/Mouse/MouseWatcher.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-09-26 02:10:29 -0400
committerGitHub <[email protected]>2020-09-26 02:10:29 -0400
commit9353f5b9adc50456fefc2e55aab5e57029e89682 (patch)
tree5d28926aee87c077ffc4ed7222469bbf2f28bd2c /grapher/Models/Mouse/MouseWatcher.cs
parentMerge pull request #22 from JacobPalecki/GUI (diff)
parentSetActive changes field default, bugs fixed (diff)
downloadrawaccel-9353f5b9adc50456fefc2e55aab5e57029e89682.tar.xz
rawaccel-9353f5b9adc50456fefc2e55aab5e57029e89682.zip
Merge pull request #23 from JacobPalecki/GUI
Settings writer; GUI performance enhancement and touchups
Diffstat (limited to 'grapher/Models/Mouse/MouseWatcher.cs')
-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();