method
Input.just_pressed
Input.just_pressed(action: str) -> bool
Returns whether a named action went active this frame — active now, not active last frame. This is the deterministic on-press edge over the device layer (keyboard or pad), the event-style "just pressed" without a callback: a handler polls it each frame and reacts. Pair with Input.just_released for the release edge and Input.active for the held state.
Example
program Press {
entry {
Input.action("jump", ' ')
if Input.just_pressed("jump") { print(1) }
}
}