Show / Hide Table of Contents

Struct MouseState

A struct to contain information about the current mouse state.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public struct MouseState

Fields

Position

The mouse position in either screen coordinates (if received from GetGlobalMouseState(out MouseState)),
or window relative coordinates (if received from GetMouseState(WindowHandle, out MouseState)).

Declaration
public Vector2 Position
Field Value
Type Description
Vector2

PressedButtons

Flags to indicate which mouse buttons are being pressed.

Declaration
public MouseButtonFlags PressedButtons
Field Value
Type Description
MouseButtonFlags

Scroll

Virtual position of the scroll wheel. The absolute value of this variable has no intrinsic value, it is differences in this value over time that indicate scroll wheel movement.

Declaration
public Vector2 Scroll
Field Value
Type Description
Vector2

See Also

GetGlobalMouseState(out MouseState)
GetMouseState(WindowHandle, out MouseState)
In this article
Back to top Generated by DocFX