Class RawMouseMoveEventArgs
This event is triggered when the mouse moves and raw mouse motion is enabled.
Inherited Members
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public class RawMouseMoveEventArgs : WindowEventArgs
Constructors
RawMouseMoveEventArgs(WindowHandle, Vector2)
Initializes a new instance of the RawMouseMoveEventArgs class.
Declaration
public RawMouseMoveEventArgs(WindowHandle window, Vector2 delta)
Parameters
Type | Name | Description |
---|---|---|
WindowHandle | window | The window in which the mouse moved. |
Vector2 | delta | The raw mouse delta. |
Properties
Delta
The unscaled movement value of the mouse. Positive X and Y deltas indicate a right and down movement, while negative X and Y deltas indicate a left and up movement. The absolute values of this property will be different between different hardware.
Declaration
public Vector2 Delta { get; }
Property Value
Type | Description |
---|---|
Vector2 |