MouseInput Structure

Contains information about a simulated mouse event.

Definition

Namespace: DevCase.Win32.Structures
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public struct MouseInput
Inheritance
Object    ValueType    MouseInput

Remarks

Methods

Equals Indicates whether this instance and a specified object are equal.
(Inherited from ValueType)
GetHashCode Returns the hash code for this instance.
(Inherited from ValueType)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns the fully qualified type name of this instance.
(Inherited from ValueType)

Fields

ExtraInfo An additional value associated with the mouse event.

An application calls GetMessageExtraInfo to obtain this extra information.

Flags A set of bit flags that specify various aspects of mouse motion and button clicks.

The bit flags that specify mouse button status are set to indicate changes in status, not ongoing conditions.

For example, if the left mouse button is pressed and held down, LeftDown is set when the left button is first pressed, but not for subsequent motions.

Similarly, LeftUp is set only when the button is first released.

You cannot specify both the Wheel flag and either XDown or XUp flags simultaneously in the Flags parameter, because they both require use of the 'mouseData' field.

MouseData If Flags contains Wheel, then MouseData specifies the amount of wheel movement.

A positive value indicates that the wheel was rotated forward, away from the user.

a negative value indicates that the wheel was rotated backward, toward the user. One wheel click is defined as WHEEL_DELTA, which is 120. If Flags does not contain Wheel, XDown, or XUp, then MouseData should be 0.

Time The time stamp for the event, in milliseconds.

If this parameter is 0, the system will provide its own time stamp.

X The absolute position of the mouse, or the amount of motion since the last mouse event was generated, depending on the value of the flags member.

Absolute data is specified as the 'x' coordinate of the mouse; relative data is specified as the number of pixels moved.

Y The absolute position of the mouse, or the amount of motion since the last mouse event was generated, depending on the value of the flags member.

Absolute data is specified as the 'y' coordinate of the mouse; relative data is specified as the number of pixels moved.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also