예제 #1
0
파일: Input64.cs 프로젝트: EDOlsson/White
 /// <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
파일: Input.cs 프로젝트: EDOlsson/White
 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
파일: Keyboard.cs 프로젝트: EDOlsson/White
 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
파일: Keyboard.cs 프로젝트: EDOlsson/White
 private void Send(KeyboardInput.SpecialKeys key, bool specialKey)
 {
     Press((short) key, specialKey);
 }
예제 #9
0
파일: Keyboard.cs 프로젝트: EDOlsson/White
 public virtual void LeaveKey(KeyboardInput.SpecialKeys key)
 {
     LeaveKey(key, new NullActionListener());
 }
예제 #10
0
파일: Keyboard.cs 프로젝트: EDOlsson/White
 private static Input GetInputFor(short character, KeyboardInput.KeyUpDown keyUpOrDown)
 {
     return InputFactory.Keyboard(new KeyboardInput(character, keyUpOrDown, GetMessageExtraInfo()));
 }
예제 #11
0
파일: Keyboard.cs 프로젝트: EDOlsson/White
 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
파일: Keyboard.cs 프로젝트: EDOlsson/White
 internal virtual void HoldKey(KeyboardInput.SpecialKeys key, IActionListener actionListener)
 {
     SendKeyDown((short) key, true);
     heldKeys.Add(key);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
예제 #13
0
파일: Keyboard.cs 프로젝트: EDOlsson/White
 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));
 }