diff options
| author | Jacob Palecki <[email protected]> | 2020-07-31 10:56:26 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-31 10:56:26 -0700 |
| commit | 827f860b80b5195315ac5b2b8dffb32cf532e0d1 (patch) | |
| tree | 264ee34d7bf046b301360e7a6ac0e285d1aa08ff | |
| parent | Small refactoring, use new struct to store magnitudes (diff) | |
| download | rawaccel-827f860b80b5195315ac5b2b8dffb32cf532e0d1.tar.xz rawaccel-827f860b80b5195315ac5b2b8dffb32cf532e0d1.zip | |
Add class for storing settings from file
| -rw-r--r-- | grapher/AccelerationSettings.cs | 24 | ||||
| -rw-r--r-- | grapher/Form1.Designer.cs | 1 | ||||
| -rw-r--r-- | grapher/Form1.cs | 5 |
3 files changed, 23 insertions, 7 deletions
diff --git a/grapher/AccelerationSettings.cs b/grapher/AccelerationSettings.cs index 83d48db..dd026e8 100644 --- a/grapher/AccelerationSettings.cs +++ b/grapher/AccelerationSettings.cs @@ -8,6 +8,28 @@ namespace grapher { public class AccelerationSettings { - public sensitivity + public double SensitivityX { get; } + + public double SensitivityY { get; } + + public double Rotation { get; } + + public double Offset { get; } + + public double WeightX { get; } + + public double WeightY { get; } + + public double CapX { get; } + + public double CapY { get; } + + public int AccelerationType { get; } + + public double Acceleration { get; } + + public double LimitOrExponent { get; } + + public double Midpoint { get; } } } diff --git a/grapher/Form1.Designer.cs b/grapher/Form1.Designer.cs index 4e89ca8..667abf1 100644 --- a/grapher/Form1.Designer.cs +++ b/grapher/Form1.Designer.cs @@ -155,7 +155,6 @@ namespace grapher this.capLabel.TabIndex = 11; this.capLabel.Text = "Cap"; this.capLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.capLabel.Click += new System.EventHandler(this.label3_Click); // // weightBoxFirst // diff --git a/grapher/Form1.cs b/grapher/Form1.cs index c6ac407..e0953eb 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -180,10 +180,5 @@ namespace grapher } #endregion Methods - - private void label3_Click(object sender, EventArgs e) - { - - } } } |