User Tools

Site Tools


4rpl:commands:getmousescrolldelta

Index

GetMouseScrollDelta

GetMouseScrollDelta(true) ->val

Description

Returns a positive or negative number when the mouse scroll wheel is rotated. The magnitude of the number is proportional to the amount the wheel is scrolled. The argument to GetMouseScrollDelta indicates whether to ignore the scroll events when over the UI.

Examples

GetMouseScrollDelta(true) ->zpos
SetUnitPosition(<-uid V3(10 1 <-zpos))

Index

4rpl/commands/getmousescrolldelta.txt · Last modified: 2021/02/13 12:05 by virgilw