diff options
| author | Jacob Palecki <[email protected]> | 2020-08-19 15:26:25 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-08-19 15:26:25 -0700 |
| commit | 53c9025337166a408febc15078af3e9b136b3bab (patch) | |
| tree | c124a399bf5ae56abf9405a41c2908fd753acfbe /grapher/Form1.cs | |
| parent | Merge pull request #15 from JacobPalecki/GUI (diff) | |
| download | rawaccel-53c9025337166a408febc15078af3e9b136b3bab.tar.xz rawaccel-53c9025337166a408febc15078af3e9b136b3bab.zip | |
Add natural gain accel; add scale by DPI, poll rate in GUI
Diffstat (limited to 'grapher/Form1.cs')
| -rw-r--r-- | grapher/Form1.cs | 9 |
1 files changed, 8 insertions, 1 deletions
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 |