API Reference › Input › Input.just_released
method

Input.just_released

Input.just_released(action: str) -> bool

Returns whether a named action went inactive this frame — not active now, active last frame. The on-release edge over the device layer (keyboard or pad), symmetric with Input.just_pressed. Use it for release-triggered actions (variable-height jump cut-off, charge-and-release). Deterministic, so a replay fires the same edges.

Example

program Release {
  entry {
    Input.action("charge", ' ')
    if Input.just_released("charge") { print(1) }
  }
}
← All symbols