Class ScrollEventArgs
This event is triggered when the scrollwheel on a mouse is used.
Inherited Members
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public class ScrollEventArgs : WindowEventArgs
Constructors
ScrollEventArgs(WindowHandle, Vector2, Vector2)
Initializes a new instance of the ScrollEventArgs class.
Declaration
public ScrollEventArgs(WindowHandle window, Vector2 delta, Vector2 distance)
Parameters
Type | Name | Description |
---|---|---|
WindowHandle | window | The window that received the scrolling. |
Vector2 | delta | The number of steps that where scrolled. |
Vector2 | distance | The distance that was scrolled (affected by user scroll speed settings). |
Properties
Delta
How much the mouse wheel has moved.
Declaration
public Vector2 Delta { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Distance
The distance to move screen content. This takes into account user settings for scrolling speed. Measured in vertical lines and horizontal characters.
Declaration
public Vector2 Distance { get; }
Property Value
Type | Description |
---|---|
Vector2 |