summaryrefslogtreecommitdiff
path: root/grapher/Models/AccelGUI.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-02 16:19:11 -0700
committerJacob Palecki <[email protected]>2020-09-02 16:19:11 -0700
commit6b5fdf4e593c056df13de325fea7b6b35fbb750e (patch)
tree7f53e3be86a17097aafad43738a34e7c665cfcd0 /grapher/Models/AccelGUI.cs
parentMerge pull request #1 from Sidiouth/sidi (diff)
parentMerge pull request #18 from a1xd/write-delay (diff)
downloadrawaccel-6b5fdf4e593c056df13de325fea7b6b35fbb750e.tar.xz
rawaccel-6b5fdf4e593c056df13de325fea7b6b35fbb750e.zip
Merge remote-tracking branch 'upstream/master' into master
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
-rw-r--r--grapher/Models/AccelGUI.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs
index a15dba8..7a32b4e 100644
--- a/grapher/Models/AccelGUI.cs
+++ b/grapher/Models/AccelGUI.cs
@@ -102,7 +102,7 @@ namespace grapher
public void UpdateActiveSettingsFromFields()
{
- Settings.UpdateActiveSettings(new DriverSettings
+ var settings = new DriverSettings
{
rotation = Rotation.Field.Data,
sensitivity = new Vec2<double>
@@ -133,8 +133,16 @@ namespace grapher
}
},
minimumTime = .4
+ };
+
+ Settings.UpdateActiveSettings(settings, () =>
+ {
+ AccelForm.Invoke((MethodInvoker)delegate
+ {
+ UpdateGraph();
+ });
});
- UpdateGraph();
+
}
public void UpdateGraph()