Optionalareawhere a floating stick can be picked up: "half" (the default), its
half of the screen; "screen", anywhere; or a rectangle
{ x, y, width, height } in viewport pixels. Buttons and fixed sticks
come first where they overlap it (see ControlArea). Ignored for
a fixed stick.
Optionalbasethe base region in the plugin's skin atlas; shapes when omitted
Optionaldeadzonehow far the stick must lean, from 0 to 1, before it reads anything.
Past it the reading starts from 0, so it still reaches 1 at full
travel. 0.1 by default, as input.setGamepadDeadzone.
Optionaldpadalso press the D-pad buttons (GAMEPAD.BUTTONS.UP, DOWN, LEFT,
RIGHT) in 8 directions as the stick leans. On by default for the left
stick.
Optionaldpadhow far the thumb must travel, from 0 to 1, to press the D-pad and its
keys. 0.5 by default: half way.
Optionalfloatingthe stick is centered where the thumb lands inside its area, rather
than at a fixed spot, and goes back to its position when let go. Off
by default.
Optionalhidedraw a floating stick only while a finger holds it, so it appears under the thumb and is gone when the thumb lifts. Off by default: it rests in its corner, to show where it is. Ignored for a fixed stick.
Optionalkeyskeys to press, as the D-pad would, for a game that reads the keyboard rather than a pad
Optionalpositionwhere its center sits; the bottom corner on its side by default
Optionalradiusthe radius of its base, in viewport pixels
Optionalsidewhich stick of a pad it is: "left" reports GAMEPAD.AXES.LX/LY,
"right" reports RX/RY. The first stick is the left one, the
second the right one.
Optionaltapmake a quick tap on the stick press a button or a key, as a button
would: a touch that lifts within time and never leans far enough to
press a direction (dpadThreshold) is a tap; a cancelled touch is
not. The press lasts one frame, so a locked key fires once, and a
fading ring marks where the tap landed. With a floating stick over the
whole screen (area: "screen"), tap anywhere to act, drag to steer,
and no button is needed. Off by default.
Optionalthumbthe thumb region in the plugin's skin atlas; a circle when omitted
A stick of the virtual gamepad.