ScrollControl

Description

sealed class Tinman.Engine.Components.ScrollControl

Provides simple keyboard controls for 2D scrolling.

Public / Constructors

Scroll​Control


public constructor ScrollControl → ()

Creates a new instance of ScrollControl.

Public / Attributes

Amount


public attribute Amount → (get)

value : Vec2D

The scroll amount, within [-1..1] per axis.

Returns the current scroll amount.

Direction


public attribute Direction → (get)

value : Vec2D

The unit-length scroll direction or Vec2D.Zero.

Returns the current scroll direction.

Has​Amount


public attribute HasAmount → (get)

value : bool

true if the current scroll amount is non-zero, false if it is zero.

Is the any scroll amount?