Exemplo n.º 1
0
 public MediatorStateChangeHandler(
     IDIHotkeyDetection diHotkeyDetection,
     IInputEvents inputEvents,
     IDirectInputEventHotkeyFilter directInputEventHotkeyFilter = null,
     IKeySettingsReader keySettingsReader = null)
 {
     _directInputEventHotkeyFilter = directInputEventHotkeyFilter ?? new DirectInputEventHotkeyFilter();
     _diHotkeyDetection            = diHotkeyDetection;
     _inputEvents       = inputEvents;
     _keySettingsReader = keySettingsReader ?? new KeySettingsReader();
 }
Exemplo n.º 2
0
 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();
 }