private void LoadHotkeys() { if (AmeisenBot.Config.Hotkeys.TryGetValue("StartStop", out Keybind kv)) { KeyboardHook.AddHotkey((KeyCode)kv.Key, (KeyCode)kv.Mod, StartPause); } }
private void LoadHotkeys() { if (AmeisenBot.Config.Hotkeys.TryGetValue("StartStop", out Keybind kv)) { KeyboardHook.AddHotkey((KeyCode)kv.Key, (KeyCode)kv.Mod, StartPause); } }