public KeyInputController(IUIAssistantAPI api, StateController controller)
 {
     UIAssistantAPI   = api;
     KeyboardAPI      = UIAssistantAPI.KeyboardAPI;
     _stateController = controller;
     _settings        = KeybindsManiacs.Settings;
 }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
 public static void KillRingSave(StateController stateController, KeybindsManiacsSettings settings)
 {
     KeybindsManiacs.UIAssistantAPI.KeyboardAPI.KeyboardOperation.SendKeys(Key.RightCtrl, Key.C);
     stateController.SwitchMode(settings.Mode, true);
 }