Пример #1
0
 public void SetKeyPressDown(EventKeyPressDown keyEvent)
 {
     if (keyEvent.KeyEvent.Alt)
     {
         pressedKeys |= KeysEnum.Alt;
     }
     if (keyEvent.KeyEvent.Control)
     {
         pressedKeys |= KeysEnum.Control;
     }
     if (keyEvent.KeyEvent.Shift)
     {
         pressedKeys |= KeysEnum.Shift;
     }
 }
Пример #2
0
        public void KeyPressDown(KeyEventArgs args)
        {
            var keyEvent = new EventKeyPressDown(args);

            keyEvent.Post();
        }