public MediatorStateChangeHandler( IDIHotkeyDetection diHotkeyDetection, IInputEvents inputEvents, IDirectInputEventHotkeyFilter directInputEventHotkeyFilter = null, IKeySettingsReader keySettingsReader = null) { _directInputEventHotkeyFilter = directInputEventHotkeyFilter ?? new DirectInputEventHotkeyFilter(); _diHotkeyDetection = diHotkeyDetection; _inputEvents = inputEvents; _keySettingsReader = keySettingsReader ?? new KeySettingsReader(); }
public KeyEventHandler( IInputEvents inputEvents, IKeyInputEventHotkeyFilter keyInputEventHotkeyFilter = null, IKeyEventArgsAugmenter keyEventArgsAugmenter = null, IKeySettingsReader keySettingsReader = null ) { _inputEvents = inputEvents; _keyInputEventHotkeyFilter = keyInputEventHotkeyFilter ?? new KeyInputEventHotkeyFilter(); _keyEventArgsAugmenter = keyEventArgsAugmenter ?? new KeyEventArgsAugmenter(); _keySettingsReader = keySettingsReader ?? new KeySettingsReader(); }