diff options
| author | Jacob Palecki <[email protected]> | 2020-09-20 23:16:15 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-20 23:16:15 -0700 |
| commit | 2a756dfb08b4f8c0870173ad4e0393cdeef33c94 (patch) | |
| tree | 575d676af12a67db93b7ff7557ac029f27a58b8c /grapher/Models/AccelGUIFactory.cs | |
| parent | Merge branch 'GUI' into Unsure (diff) | |
| download | rawaccel-2a756dfb08b4f8c0870173ad4e0393cdeef33c94.tar.xz rawaccel-2a756dfb08b4f8c0870173ad4e0393cdeef33c94.zip | |
Attempt to get separate x/y working
Diffstat (limited to 'grapher/Models/AccelGUIFactory.cs')
| -rw-r--r-- | grapher/Models/AccelGUIFactory.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs index 526e399..eb30864 100644 --- a/grapher/Models/AccelGUIFactory.cs +++ b/grapher/Models/AccelGUIFactory.cs @@ -89,6 +89,10 @@ namespace grapher.Models Label optionSetYTitle, Label mouseLabel) { + var accelCalculator = new AccelCalculator( + new Field(dpiTextBox.TextBox, form, Constants.DefaultDPI), + new Field(pollRateTextBox.TextBox, form, Constants.DefaultPollRate)); + var accelCharts = new AccelCharts( form, new ChartXY(accelerationChart, accelerationChartY, Constants.SensitivityChartTitle), @@ -96,7 +100,8 @@ namespace grapher.Models new ChartXY(gainChart, gainChartY, Constants.GainChartTitle), showVelocityGainToolStripMenuItem, showLastMouseMoveMenuItem, - writeButton); + writeButton, + accelCalculator); var sensitivity = new OptionXY( sensitivityBoxX, @@ -276,10 +281,6 @@ namespace grapher.Models lockXYLabel, accelCharts); - var accelCalculator = new AccelCalculator( - new Field(dpiTextBox.TextBox, form, Constants.DefaultDPI), - new Field(pollRateTextBox.TextBox, form, Constants.DefaultPollRate)); - var settings = new SettingsManager( activeAccel, accelCalculator.DPI, |