On this page
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.
framesOptional- 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");
}
}