summaryrefslogtreecommitdiff
path: root/grapher/Models/AccelGUI.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-09-01 22:28:45 -0400
committera1xd <[email protected]>2020-09-01 22:28:45 -0400
commit7ff79f4e711c2d55daf667092cfce0289b1a7a9b (patch)
tree28ebe356b2954911c2bbb4f09ac5ddee12578b31 /grapher/Models/AccelGUI.cs
parentMerge pull request #17 from a1xd/indep (diff)
downloadrawaccel-7ff79f4e711c2d55daf667092cfce0289b1a7a9b.tar.xz
rawaccel-7ff79f4e711c2d55daf667092cfce0289b1a7a9b.zip
add 1s write delay to driver
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()