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); }
public void Release(KeyboardKeyInput keyInput) { _driver.SendKeyboardInput((UInt16)keyInput.KeyCode, (UInt32)keyInput.KeyFlagUp); }
public void Press(KeyboardKeyInput keyInput) { _driver.SendKeyboardInput((UInt16)keyInput.KeyCode, (UInt32)keyInput.KeyFlagDown); }