public KeyInputController(IUIAssistantAPI api, StateController controller)
 {
     UIAssistantAPI   = api;
     KeyboardAPI      = UIAssistantAPI.KeyboardAPI;
     _stateController = controller;
     _settings        = KeybindsManiacs.Settings;
 }
        public void Initialize(IUIAssistantAPI api)
        {
            UIAssistantAPI = api;

            Settings         = KeybindsManiacsSettings.Load();
            _stateController = new StateController(api);
            _keyController   = new KeyInputController(api, _stateController);
            Localizer        = api.LocalizationAPI.GetLocalizer();
            RegisterCommand();

            if (_stateController.Settings.RunAtStartup)
            {
                _keyController.Toggle();
            }
        }
 public static void KillRingSave(StateController stateController, KeybindsManiacsSettings settings)
 {
     KeybindsManiacs.UIAssistantAPI.KeyboardAPI.KeyboardOperation.SendKeys(Key.RightCtrl, Key.C);
     stateController.SwitchMode(settings.Mode, true);
 }