예제 #1
0
 public DirectionalKeysInput(KeyboardKeyCode upKeyCode, KeyboardKeyCode downKeyCode, KeyboardKeyCode leftKeyCode, KeyboardKeyCode rightKeyCode)
 {
     UpKey    = new KeyboardKeyInput(upKeyCode);
     DownKey  = new KeyboardKeyInput(downKeyCode);
     LeftKey  = new KeyboardKeyInput(leftKeyCode);
     RightKey = new KeyboardKeyInput(rightKeyCode);
 }
예제 #2
0
 public void Release(KeyboardKeyInput keyInput)
 {
     _driver.SendKeyboardInput((UInt16)keyInput.KeyCode, (UInt32)keyInput.KeyFlagUp);
 }
예제 #3
0
 public void Press(KeyboardKeyInput keyInput)
 {
     _driver.SendKeyboardInput((UInt16)keyInput.KeyCode, (UInt32)keyInput.KeyFlagDown);
 }