summaryrefslogtreecommitdiff
path: root/grapher/Models/AccelGUIFactory.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-26 13:43:13 -0700
committerJacob Palecki <[email protected]>2020-09-26 13:43:13 -0700
commit0ce82f408b9c182cde407fcb0d3c98223c314ea9 (patch)
tree050b32e2a1bf43f8bcff9e5600c50fee380a7cc0 /grapher/Models/AccelGUIFactory.cs
parentFAQ has conversion instructions (diff)
downloadrawaccel-0ce82f408b9c182cde407fcb0d3c98223c314ea9.tar.xz
rawaccel-0ce82f408b9c182cde407fcb0d3c98223c314ea9.zip
Scale Last Mouse Move by poll rate
Diffstat (limited to 'grapher/Models/AccelGUIFactory.cs')
-rw-r--r--grapher/Models/AccelGUIFactory.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs
index d986369..469fcf7 100644
--- a/grapher/Models/AccelGUIFactory.cs
+++ b/grapher/Models/AccelGUIFactory.cs
@@ -1,4 +1,5 @@
using grapher.Models.Calculations;
+using grapher.Models.Mouse;
using grapher.Models.Options;
using grapher.Models.Serialized;
using System.Windows.Forms;
@@ -289,6 +290,8 @@ namespace grapher.Models
showLastMouseMoveMenuItem,
showVelocityGainToolStripMenuItem);
+ var mouseWatcher = new MouseWatcher(form, mouseLabel, accelCharts, accelCalculator.PollRate);
+
return new AccelGUI(
form,
accelCalculator,
@@ -296,7 +299,7 @@ namespace grapher.Models
settings,
applyOptions,
writeButton,
- mouseLabel,
+ mouseWatcher,
scaleMenuItem);
}