On this page
API type

input

Current controller packet.

Syntax

Atlas Script
input

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Current controller packet. Read a named control with input.get(control): digital buttons return 0 or 100 and triggers return pressure from 0 to 100. Named controls such as x, west, and l2 are not direct input properties; pass a quoted name or a platform-qualified constant. Stick axes remain available as input.left_x/left_y/right_x/right_y and are approximately -100 to 100. input.time is 0 initially, then a smoothed packet interval with individual samples capped at 50 ms. Compare input.controller with controller.* constants. Native touch-point reads and input.capabilities are not currently implemented.

Examples

Usage pattern
// input is available where its documented API returns or accepts this value.
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.