AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.PointerScrollDelta

Method  -  Static

public static float PointerScrollDelta()

Parameters

No parameters.

Returns

float

Scroll wheel delta position

Description

Get the delta of the mouse scroll position since last IRetroBlitGame.Update call. The delta is always 0 if there is no mouse detected.

To detect if the scroll wheel was pressed use RB.BTN_POINTER_C with RB.ButtonDown, RB.ButtonPressed, or RB.ButtonReleased.

Example

int scrollPosition = 0;

void Update() {
    scrollPosition += RB.PointerScrollDelta();
}

See Also

RB.PointerPos
RB.ButtonDown
RB.ButtonPressed
RB.ButtonReleased

See Docs

Features - Pointer