From 53c9025337166a408febc15078af3e9b136b3bab Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Wed, 19 Aug 2020 15:26:25 -0700 Subject: Add natural gain accel; add scale by DPI, poll rate in GUI --- grapher/Form1.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'grapher/Form1.cs') diff --git a/grapher/Form1.cs b/grapher/Form1.cs index d8db6fc..6e08683 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -9,6 +9,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Runtime.InteropServices; +using grapher.Models.Calculations; namespace grapher { @@ -131,8 +132,13 @@ namespace grapher cap, weight); + AccelCalculator accelCalculator = new AccelCalculator( + new Field(DPITextBox.TextBox, this, AccelCalculator.DefaultDPI), + new Field(PollRateTextBox.TextBox, this, AccelCalculator.DefaultPollRate)); + AccelGUI = new AccelGUI( this, + accelCalculator, accelCharts, managedAcceleration, accelerationOptions, @@ -145,7 +151,8 @@ namespace grapher limitOrExponent, midpoint, writeButton, - MouseLabel); + MouseLabel, + ScaleMenuItem); } #endregion Constructor -- cgit v1.2.3