public KeyboardService( ISuggestionStateService suggestionService, ICapturingStateManager capturingStateManager, ILastMouseActionStateManager lastMouseActionStateManager, ICalibrationService calibrationService, IWindowStateService mainWindowStateService) { keySelectionProgress = new NotifyingConcurrentDictionary<KeyValue, double>(); keyDownStates = new NotifyingConcurrentDictionary<KeyValue, KeyDownStates>(); keyEnabledStates = new KeyEnabledStates(this, suggestionService, capturingStateManager, lastMouseActionStateManager, calibrationService, mainWindowStateService); InitialiseKeyDownStates(); AddKeyboardSetChangeHandlers(); AddKeyDownStatesChangeHandlers(); }
public KeyStateService( ISuggestionStateService suggestionService, ICapturingStateManager capturingStateManager, ILastMouseActionStateManager lastMouseActionStateManager, ICalibrationService calibrationService, Action<KeyValue> fireKeySelectionEvent) { this.fireKeySelectionEvent = fireKeySelectionEvent; keySelectionProgress = new NotifyingConcurrentDictionary<KeyValue, double>(); keyDownStates = new NotifyingConcurrentDictionary<KeyValue, KeyDownStates>(); keyEnabledStates = new KeyEnabledStates(this, suggestionService, capturingStateManager, lastMouseActionStateManager, calibrationService); InitialiseKeyDownStates(); AddSettingChangeHandlers(); AddSimulateKeyStrokesChangeHandler(); AddKeyDownStatesChangeHandlers(); }