Пример #1
0
 /// <summary>
 /// Converts a 32bit Input to a 64bit Input
 /// </summary>
 /// <param name="input"></param>
 public Input64(Input input)
 {
     type = input.type;
     mi = input.mi;
     ki = input.ki;
     hi = input.hi;
 }
 public static ThirtyTwoBitInput Keyboard(KeyboardInput keyboardInput)
 {
     return(new ThirtyTwoBitInput {
         type = WindowsConstants.INPUT_KEYBOARD, ki = keyboardInput
     });
 }
 public static void PressSpecialKey(this AttachedKeyboard keyboard, KeyboardInput.SpecialKeys holdKey, KeyboardInput.SpecialKeys specialKey)
 {
     keyboard.HoldKey(holdKey);
     keyboard.PressSpecialKey(specialKey);
     keyboard.LeaveKey(holdKey);
 }
Пример #4
0
 public static Input KeyboardInput(int type, KeyboardInput keyboardInput)
 {
     return new Input {type = type, ki = keyboardInput};
 }
Пример #5
0
 public virtual void PressSpecialKey(KeyboardInput.SpecialKeys key)
 {
     container.Focus();
     keyboard.PressSpecialKey(key, container);
 }
Пример #6
0
 public virtual void LeaveKey(KeyboardInput.SpecialKeys key, IActionListener actionListener)
 {
     SendKeyUp((short) key, true);
     heldKeys.Remove(key);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
Пример #7
0
 public static ThirtyTwoBitInput Keyboard(KeyboardInput keyboardInput)
 {
     return new ThirtyTwoBitInput {type = WindowsConstants.INPUT_KEYBOARD, ki = keyboardInput};
 }
Пример #8
0
 private void Send(KeyboardInput.SpecialKeys key, bool specialKey)
 {
     Press((short) key, specialKey);
 }
Пример #9
0
 public virtual void LeaveKey(KeyboardInput.SpecialKeys key)
 {
     LeaveKey(key, new NullActionListener());
 }
Пример #10
0
 private static Input GetInputFor(short character, KeyboardInput.KeyUpDown keyUpOrDown)
 {
     return InputFactory.Keyboard(new KeyboardInput(character, keyUpOrDown, GetMessageExtraInfo()));
 }
Пример #11
0
 private static KeyboardInput.KeyUpDown GetSpecialKeyCode(bool specialKey, KeyboardInput.KeyUpDown key)
 {
     if (specialKey && scanCodeDependent.Contains((KeyboardInput.SpecialKeys) key)) key |= KeyboardInput.KeyUpDown.KEYEVENTF_EXTENDEDKEY;
     return key;
 }
Пример #12
0
 internal virtual void HoldKey(KeyboardInput.SpecialKeys key, IActionListener actionListener)
 {
     SendKeyDown((short) key, true);
     heldKeys.Add(key);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
Пример #13
0
 public virtual void PressSpecialKey(KeyboardInput.SpecialKeys key, IActionListener actionListener)
 {
     Send(key, true);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
Пример #14
0
 public static Input Keyboard(KeyboardInput keyboardInput)
 {
     return Input.KeyboardInput(WindowsConstants.INPUT_KEYBOARD, keyboardInput);
 }
Пример #15
0
 public static Input KeyboardInput(int type, KeyboardInput keyboardInput)
 {
     return(new Input {
         type = type, ki = keyboardInput
     });
 }
Пример #16
0
 public static Input Keyboard(KeyboardInput keyboardInput)
 {
     return(Input.KeyboardInput(WindowsConstants.INPUT_KEYBOARD, keyboardInput));
 }