Class Mouse
Provides an abstraction for common mouse operations and state. Represents a mouse event, including position, button state, and other flags.
public class Mouse : EventArgs
- Inheritance
-
Mouse
- Inherited Members
Remarks
The MouseEvent event uses this class.
Constructors
Properties
- Flags
Flags indicating the state of the mouse buttons and the type of event that occurred.
- Handled
Gets or sets a value indicating whether the mouse event was handled.
- IsDoubleClicked
Gets a value indicating whether a double-click mouse event occurred.
- IsPressed
Gets a value indicating whether a mouse button was pressed.
- IsReleased
Gets a value indicating whether a mouse button was released.
- IsSingleClicked
Gets a value indicating whether a single-click mouse event occurred.
- IsSingleDoubleOrTripleClicked
Gets a value indicating whether a single, double, or triple-click mouse event occurred.
- IsTripleClicked
Gets a value indicating whether a triple-click mouse event occurred.
- IsWheel
Gets a value indicating whether a mouse wheel event occurred.
- ScreenPosition
The screen-relative mouse position, in columns and rows.
- Timestamp
The timestamp when this mouse event was created. Used for multi-click detection timing.
- View
The view that is the target of the mouse event.
Methods
- ToString()
Returns a string that represents the current mouse event.