Example #1
0
 public void SetUp()
 {
     _sender   = new KeySender();
     _receiver = new KeyReceiver();
     _receiver.Install();
     _monitor = new KeyStateMonitor();
 }
Example #2
0
 public void RegisterOpenKey(IKeyReceiver keyReceiver)
 {
     if (CanOpenUiByKey)
     {
         RegisterKeyReceive(keyReceiver);
     }
     UiSessionComponent.OpenUiKeyReceiverList.Add(keyReceiver);
 }
        private KeyReporter(IKeyReceiver keyReceiver)
        {
            if (keyReceiver == null)
            {
                throw new ArgumentNullException(nameof(keyReceiver));
            }

            _keyReceiver = keyReceiver;
        }
Example #4
0
 public void SetUp()
 {
     _sender   = new KeySender();
     _receiver = new KeyReceiver();
     _receiver.Install();
 }
 public KeyCombinationReceiver(IKeyReceiver receiver, IKeyStateMonitor monitor)
 {
     _receiver = receiver;
     _monitor  = monitor;
 }
        public void SetReceiverToNote(string deviceName, byte channel, byte type, IKeyReceiver receiver)
        {
            var device = GetOrCreate(deviceName);

            device.SetReceiverToNote(channel, type, receiver);
        }
Example #7
0
 public void RegisterKeyReceiver(IKeyReceiver receiver)
 {
     userInputManager.RegisterKeyReceiver(receiver);
 }
 public static KeyReporter Instance(IKeyReceiver keyReceiver = null)
 {
     return(_instance ?? (_instance = new KeyReporter(keyReceiver)));
 }
Example #9
0
 public void UnRegisterKeyReceive(IKeyReceiver keyReceive)
 {
     UserInputManager.Instance.UnregisterKeyReceiver(keyReceive);
 }