Пример #1
0
        public override void OnButtonUp(DeckDevice deckDevice)
        {
            var key = GetKeyFromMediaKey(Key);

            if (key != Keys.None)
            {
                NativeKeyHandler.ClickKey(new[] { key });
            }
        }
Пример #2
0
 public override void OnButtonUp(DeckDevice deckDevice)
 {
     isPressed ^= true;
     if (!isPressed)
     {
         NativeKeyHandler.PressKey(KeyInfoValue.ModifierKeys);
         NativeKeyHandler.PressKey(KeyInfoValue.Keys);
     }
     else
     {
         NativeKeyHandler.UnpressKey(KeyInfoValue.Keys);
         NativeKeyHandler.UnpressKey(KeyInfoValue.ModifierKeys);
     }
 }
Пример #3
0
 public override void OnButtonUp(DeckDevice deckDevice)
 {
     NativeKeyHandler.UnpressKey(KeyInfoValue.Keys);
     NativeKeyHandler.UnpressKey(KeyInfoValue.ModifierKeys);
 }