ReferenceInput

mousescroll

Queues a mouse-wheel event for the game.

Syntax

mousescroll(amount: number) -> ()

Also available as

mouse_scroll

Parameters

ParameterTypeDescription
amountnumberSigned wheel amount.

Description

Amount is a finite signed scroll value. How scrolling affects the view depends on the game’s current input context. This does not scroll another application or guarantee a particular camera zoom.

Example

mousescroll(1)

These are Game executor contracts. Check build requirements and session lifetimes before using them.