Class MouseButtonUpEventArgs
This event is triggered when a mouse button is released.
Inherited Members
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public class MouseButtonUpEventArgs : WindowEventArgs
Constructors
MouseButtonUpEventArgs(WindowHandle, Vector2, MouseButton, KeyModifier, int)
Initializes a new instance of the MouseButtonUpEventArgs class.
Declaration
public MouseButtonUpEventArgs(WindowHandle window, Vector2 clientPosition, MouseButton button, KeyModifier modifiers, int clicks)
Parameters
| Type | Name | Description |
|---|---|---|
| WindowHandle | window | The window that had input focus when the mouse is released. |
| Vector2 | clientPosition | The coordinate in client coordinates where the mouse was pressed. |
| MouseButton | button | The button that was released. |
| KeyModifier | modifiers | The modifiers that where active when the mouse button was released. |
| int | clicks | The click count for this event, single-click, double-click, etc. |
Properties
Button
The mouse button that was released.
Declaration
public MouseButton Button { get; }
Property Value
| Type | Description |
|---|---|
| MouseButton |
Clicks
The number of times this button has been clicked in a row in a small area and time limit. 1 for single-click, 2 for double-click, etc.
Declaration
public int Clicks { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The details of counting multi-clicks follows the platform conventions.
ClientPosition
The position where the mouse was released, in client coordinates.
Declaration
public Vector2 ClientPosition { get; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Modifiers
The active keyboard modifiers when the mouse button was released.
Declaration
public KeyModifier Modifiers { get; }
Property Value
| Type | Description |
|---|---|
| KeyModifier |