Browse docsoutput.tap
On this page
API method

output.tap

Currently presses the button for this input packet only.

Syntax

Atlas Script
output.tap(button, frames?)

Parameters

button
Controller button name or platform constant to read or change.
frames Optional
Compatibility frame-count argument. Atlas currently accepts it but performs the tap in the current input packet only; it does not schedule delayed input.

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Currently presses the button for this input packet only. The optional frames argument is accepted but ignored; Atlas has no delayed tap scheduler.

Examples

Tap for one input packet.atlas
event on_input() {
    if (input.pressed("R1")) {
        output.tap("cross");
    }
}
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.