Skip to content

form.addStick

since 1.6.3

Add a stick widget.

form.addStick(line, rect, xIndex, yIndex)

Parameters

Name Type Required Description
line FormLine yes the line where the widget should be added
rect Rect yes the coordinates
xIndex number yes the horizontal analog index
yIndex number yes the vertical analog index

Returns

Nothing.

Examples

From the official Ethos documentation
form.addStick(nil, {x=0, y=0}, 0, 1)