Class MouseMoveEventArgs
This event is triggered when the mouse moves.
Inherited Members
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public class MouseMoveEventArgs : WindowEventArgs
Constructors
MouseMoveEventArgs(WindowHandle, Vector2)
Initializes a new instance of the MouseMoveEventArgs class.
Declaration
public MouseMoveEventArgs(WindowHandle window, Vector2 clientPosition)
Parameters
Type | Name | Description |
---|---|---|
WindowHandle | window | The window in which the mouse moved. |
Vector2 | clientPosition | The mouse position in client coordinates. |
Properties
ClientPosition
The new position of the mouse cursor in client coordinates. Use ClientToScreen(WindowHandle, Vector2, out Vector2) and ClientToFramebuffer(WindowHandle, Vector2, out Vector2) to convert to the respective coordinate spaces. When using Locked this property will contain a virtual mouse position and will not correspond an actual location in client coordinates.
Declaration
public Vector2 ClientPosition { get; }
Property Value
Type | Description |
---|---|
Vector2 |