Type of the action
argument of the Script.on_input
method.
optionalvalue:Null<Float>
The amount of input given by the user. This is usually 1 for buttons and 0-1 for analogue inputs. This is not present for mouse movement.
optionaltouch:Null<Table<Int, ScriptOnInputActionTouch>>
List of touch input, one element per finger, if present.
optionalrepeated:Null<Bool>
If the input was repeated this frame. This is similar to how a key on a keyboard is repeated when you hold it down. This is not present for mouse movement.
optionalreleased:Null<Bool>
If the input was released this frame. This is not present for mouse movement.
optionalpressed:Null<Bool>
If the input was pressed this frame. This is not present for mouse movement.
optionalgamepad_name:Null<String>
The name of the gamepad that was connected.
Available on the gamepad_connected
input event.