diff options
| author | a1xd <[email protected]> | 2020-09-01 22:28:45 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-09-01 22:28:45 -0400 |
| commit | 7ff79f4e711c2d55daf667092cfce0289b1a7a9b (patch) | |
| tree | 28ebe356b2954911c2bbb4f09ac5ddee12578b31 /grapher/Models/AccelGUI.cs | |
| parent | Merge pull request #17 from a1xd/indep (diff) | |
| download | rawaccel-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.cs | 12 |
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() |