Struct MouseButtonEventArgs
Inherited Members
Namespace: OpenTK.Windowing.Common
Assembly: OpenTK.Windowing.Desktop.dll
Syntax
public readonly struct MouseButtonEventArgs
  Constructors
MouseButtonEventArgs(MouseButton, InputAction, KeyModifiers)
Initializes a new instance of the MouseButtonEventArgs struct.
Declaration
public MouseButtonEventArgs(MouseButton button, InputAction action, KeyModifiers modifiers)
  Parameters
| Type | Name | Description | 
|---|---|---|
| MouseButton | button | The mouse button for the event.  | 
      
| InputAction | action | The action of the mouse button.  | 
      
| KeyModifiers | modifiers | The key modifiers held during the mouse button's action.  | 
      
Properties
Action
Gets the InputAction of the pressed button.
Declaration
public InputAction Action { get; }
  Property Value
| Type | Description | 
|---|---|
| InputAction | 
Button
Gets the MouseButton that triggered this event.
Declaration
public MouseButton Button { get; }
  Property Value
| Type | Description | 
|---|---|
| MouseButton | 
IsPressed
Gets a value indicating whether the Button which triggered this event was pressed or released.
Declaration
public bool IsPressed { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Modifiers
Gets the active KeyModifiers of the pressed button.
Declaration
public KeyModifiers Modifiers { get; }
  Property Value
| Type | Description | 
|---|---|
| KeyModifiers |