Class MouseButtonDownEventArgs
This event is triggered when a mouse button is pressed.
Inherited Members
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public class MouseButtonDownEventArgs : WindowEventArgs
Constructors
MouseButtonDownEventArgs(WindowHandle, MouseButton, KeyModifier)
Initializes a new instance of the MouseButtonDownEventArgs class.
Declaration
public MouseButtonDownEventArgs(WindowHandle window, MouseButton button, KeyModifier modifiers)
Parameters
Type | Name | Description |
---|---|---|
WindowHandle | window | The window that was clicked on. |
MouseButton | button | The mouse button that was pressed. |
KeyModifier | modifiers | The modifiers that where active when the mouse button was pressed. |
Properties
Button
The mouse button that was pressed.
Declaration
public MouseButton Button { get; }
Property Value
Type | Description |
---|---|
MouseButton |
Modifiers
The active keyboard modifiers when the mouse button was pressed.
Declaration
public KeyModifier Modifiers { get; }
Property Value
Type | Description |
---|---|
KeyModifier |