diff options
| author | a1xd <[email protected]> | 2020-09-26 02:10:29 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-26 02:10:29 -0400 |
| commit | 9353f5b9adc50456fefc2e55aab5e57029e89682 (patch) | |
| tree | 5d28926aee87c077ffc4ed7222469bbf2f28bd2c /grapher/Models/Mouse/MouseWatcher.cs | |
| parent | Merge pull request #22 from JacobPalecki/GUI (diff) | |
| parent | SetActive changes field default, bugs fixed (diff) | |
| download | rawaccel-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.cs | 8 |
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(); |