Struct MouseState
A struct to contain information about the current mouse state.
Inherited Members
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 |