public void KeyUp(string keyToRelease)
        {
            var key = KeyboardModifiers.GetVirtualKeyCode(keyToRelease);

            this.modifiers.Remove(keyToRelease);
            // CruciatusFactory.Keyboard.KeyUp(key);
        }
        public void KeyDown(string keyToPress)
        {
            var key = KeyboardModifiers.GetVirtualKeyCode(keyToPress);

            this.modifiers.Add(keyToPress);
            // CruciatusFactory.Keyboard.KeyDown(key);
        }
Exemple #3
0
 public bool IsModifier()
 {
     return(KeyboardModifiers.IsModifier(this.unicodeKey));
 }
Exemple #4
0
 public KeyEvent(char ch)
 {
     this.character  = ch;
     this.unicodeKey = KeyboardModifiers.GetKeyFromUnicode(this.character);
 }