Browse docsinput.get
On this page
API method

input.get

Returns the current numeric value of a named control.

Syntax

Atlas Script
input.get(control)

Parameters

control
Controller control name or platform constant to read or change, such as ps5.cross, xb.a, or a documented quoted compatibility name.

Return value

Returns the current numeric value of a named control.

Remarks

Returns the current numeric value of a named control. Digital buttons return 0 when released or 100 when held; L2/R2 and LT/RT return live pressure from 0 to 100. Pass a platform-qualified control such as input.get(ps5.l2) or input.get(xb.x), or a quoted compatibility name such as input.get("west"). Named controls are not direct properties of input.

Examples

Use a trigger pressure threshold.atlas
event on_input() {
    var pressure = input.get(ps5.l2);
    if (pressure > 50) {
        output.set_button("right", true);
    }
}
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.