Browse docsoutput.clear
On this page
API method

output.clear

Forces every button, stick axis, and trigger neutral for the current packet.

Syntax

Atlas Script
output.clear()

Parameters

This method does not accept arguments.

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Forces every button, stick axis, and trigger neutral for the current packet. It does not mark touch or motion as overridden. It is equivalent to output.neutral in the current VM.

Examples

Emergency neutral packet.atlas
event on_input() {
    if (input.pressed("options")) {
        output.clear();
        system.log("Controller output neutralized for this packet");
    }
}
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.