Struct MouseInput
Contains information about a simulated mouse event. See MOUSEINPUT structure
Namespace: Dapplo.Windows.Input.Structs
Assembly: Dapplo.Windows.Input.dll
Syntax
public struct MouseInput
Methods
| Improve this Doc View SourceMouseDown(MouseButtons, Nullable<POINT>, UInt32)
Create a MouseInput struct for a mouse button down
Declaration
public static MouseInput MouseDown(MouseButtons mouseButtons, POINT? location = null, uint timestamp = null)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseButtons | mouseButtons | MouseButtons to specify which mouse buttons |
| System.Nullable<POINT> | location | Where is the click located |
| System.UInt32 | timestamp | The time stamp for the event |
Returns
| Type | Description |
|---|---|
| MouseInput | MouseInput |
MouseMove(POINT, UInt32)
Create a MouseInput struct for a mouse move
Declaration
public static MouseInput MouseMove(POINT location, uint timestamp = null)
Parameters
| Type | Name | Description |
|---|---|---|
| POINT | location | Where is the click located |
| System.UInt32 | timestamp | The time stamp for the event |
Returns
| Type | Description |
|---|---|
| MouseInput | MouseInput |
MouseUp(MouseButtons, Nullable<POINT>, UInt32)
Create a MouseInput struct for a mouse button up
Declaration
public static MouseInput MouseUp(MouseButtons mouseButtons, POINT? location = null, uint timestamp = null)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseButtons | mouseButtons | MouseButtons to specify which mouse buttons |
| System.Nullable<POINT> | location | Where is the click located |
| System.UInt32 | timestamp | The time stamp for the event |
Returns
| Type | Description |
|---|---|
| MouseInput | MouseInput |
MoveMouseWheel(Int32, Nullable<POINT>, UInt32)
Create a MouseInput struct for a wheel move
Declaration
public static MouseInput MoveMouseWheel(int wheelDelta, POINT? location = null, uint timestamp = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | wheelDelta | How much does the wheel move |
| System.Nullable<POINT> | location | Location of the event |
| System.UInt32 | timestamp | The time stamp for the event |
Returns
| Type | Description |
|---|---|
| MouseInput | MouseInput |