From 827f860b80b5195315ac5b2b8dffb32cf532e0d1 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Fri, 31 Jul 2020 10:56:26 -0700 Subject: Add class for storing settings from file --- grapher/AccelerationSettings.cs | 24 +++++++++++++++++++++++- grapher/Form1.Designer.cs | 1 - 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) - { - - } } } -- cgit v1.2.3