diff options
| author | Jacob Palecki <[email protected]> | 2021-04-01 21:01:41 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2021-04-01 21:01:41 -0700 |
| commit | 70382da847f2a9f4353ea2f981199f832c600ca4 (patch) | |
| tree | 76f4244d9e892f1f49aaa37c83a1c4b2e1711aae /grapher/Models/AccelGUI.cs | |
| parent | use callbacks for applying accel (diff) | |
| download | rawaccel-70382da847f2a9f4353ea2f981199f832c600ca4.tar.xz rawaccel-70382da847f2a9f4353ea2f981199f832c600ca4.zip | |
Add lookuptable json
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
| -rw-r--r-- | grapher/Models/AccelGUI.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs index 3a30a9b..4c4b598 100644 --- a/grapher/Models/AccelGUI.cs +++ b/grapher/Models/AccelGUI.cs @@ -45,7 +45,7 @@ namespace grapher ToggleButton.Click += new System.EventHandler(OnToggleButtonClick); AccelForm.FormClosing += new FormClosingEventHandler(SaveGUISettingsOnClose); - ButtonTimerInterval = Convert.ToInt32(DriverInterop.WriteDelayMs); + ButtonTimerInterval = Convert.ToInt32(DriverSettings.WriteDelayMs); ButtonTimer = new Timer(); ButtonTimer.Tick += new System.EventHandler(OnButtonTimerTick); @@ -62,7 +62,7 @@ namespace grapher } else { - DriverSettings active = DriverInterop.GetActiveSettings(); + DriverSettings active = ManagedAccel.GetActive().Settings; bool activeNotDefault = !RawAccelSettings.IsDefaultEquivalent(active); LastToggleChecked = activeNotDefault; |