Struct MouseMoveEventArgs
Defines the event data for 
Inherited Members
Namespace: OpenTK.Windowing.Common
Assembly: OpenTK.Windowing.Common.dll
Syntax
public readonly struct MouseMoveEventArgs
  Constructors
MouseMoveEventArgs(Vector2, Vector2)
Initializes a new instance of the MouseMoveEventArgs struct.
Declaration
public MouseMoveEventArgs(Vector2 position, Vector2 delta)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Vector2 | position | The new mouse position.  | 
      
| Vector2 | delta | The change in position produced by this event.  | 
      
MouseMoveEventArgs(float, float, float, float)
Initializes a new instance of the MouseMoveEventArgs struct.
Declaration
public MouseMoveEventArgs(float x, float y, float deltaX, float deltaY)
  Parameters
| Type | Name | Description | 
|---|---|---|
| float | x | The new mouse X position.  | 
      
| float | y | The new mouse Y position.  | 
      
| float | deltaX | The change in X position produced by this event.  | 
      
| float | deltaY | The change in Y position produced by this event.  | 
      
Properties
Delta
Gets the change in position since the last event.
Declaration
public Vector2 Delta { get; }
  Property Value
| Type | Description | 
|---|---|
| Vector2 | 
DeltaX
Gets the change in X position since the last event.
Declaration
public float DeltaX { get; }
  Property Value
| Type | Description | 
|---|---|
| float | 
DeltaY
Gets the change in Y position since the last event.
Declaration
public float DeltaY { get; }
  Property Value
| Type | Description | 
|---|---|
| float | 
Position
Gets the new position produced by this event. This position is relative to the top-left corner of the contents of the window.
Declaration
public Vector2 Position { get; }
  Property Value
| Type | Description | 
|---|---|
| Vector2 | 
X
Gets the new X position produced by this event. This position is relative to the top-left corner of the contents of the window.
Declaration
public float X { get; }
  Property Value
| Type | Description | 
|---|---|
| float | 
Y
Gets the new Y position produced by this event. This position is relative to the top-left corner of the contents of the window.
Declaration
public float Y { get; }
  Property Value
| Type | Description | 
|---|---|
| float |