Show / Hide Table of Contents

Class MouseMoveEventArgs

This event is triggered when the mouse moves.

Inheritance
object
EventArgs
WindowEventArgs
MouseMoveEventArgs
Inherited Members
WindowEventArgs.Window
EventArgs.Empty
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
See Also
ClientToScreen(WindowHandle, Vector2, out Vector2)
ClientToFramebuffer(WindowHandle, Vector2, out Vector2)
Locked
In this article
Back to top Generated by DocFX