Struct Input
A struct used by SendInput to store information for synthesizing input events such as keystrokes, mouse movement, and mouse clicks. See INPUT structure
Namespace: Dapplo.Windows.Input.Structs
Assembly: Dapplo.Windows.Input.dll
Syntax
public struct Input
Fields
| Improve this Doc View SourceInputType
The type of the input event. This member can be one of the following values.
Declaration
public InputTypes InputType
Field Value
Type | Description |
---|---|
InputTypes |
InputUnion
A union which contains the MouseInput, KeyboardInput or HardwareInput
Declaration
public InputUnion InputUnion
Field Value
Type | Description |
---|---|
InputUnion |
Properties
| Improve this Doc View SourceSize
Used as the Size in the SendInput call
Declaration
public static int Size { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceCreateKeyboardInputs(KeyboardInput[])
A factory method to simplify creating input
Declaration
public static Input[] CreateKeyboardInputs(params KeyboardInput[] keyboardInputs)
Parameters
Type | Name | Description |
---|---|---|
KeyboardInput[] | keyboardInputs |
Returns
Type | Description |
---|---|
Input[] | Array of Input structs |
CreateMouseInputs(MouseInput[])
A factory method to simplify creating mouse input
Declaration
public static Input[] CreateMouseInputs(params MouseInput[] mouseInputs)
Parameters
Type | Name | Description |
---|---|---|
MouseInput[] | mouseInputs |
Returns
Type | Description |
---|---|
Input[] | Array of Input structs |