Header menu logo Mibo

ActionState<'Action> Type

Runtime state tracking which actions are currently active.

ActionState is the "output" of the input mapping system. It tells you which actions are held, just started, or just released.

Example

 if actionState.Started.Contains Jump then
     // Player just pressed jump this frame

 if actionState.Held.Contains MoveLeft then
     // Player is holding left

Record fields

Record Field Description

Held

Full Usage: Held

Field type: Set<'Action>

Actions currently being held down.

Field type: Set<'Action>

HeldTriggers

Full Usage: HeldTriggers

Field type: Set<Trigger>

Internal: tracks which raw triggers are currently held.

Field type: Set<Trigger>

Released

Full Usage: Released

Field type: Set<'Action>

Actions that ended (released) this frame.

Field type: Set<'Action>

Started

Full Usage: Started

Field type: Set<'Action>

Actions that started (pressed) this frame.

Field type: Set<'Action>

Values

Full Usage: Values

Field type: Map<'Action, float32>

Analog values for actions (0.0 to 1.0). Used for triggers/thumbsticks.

Field type: Map<'Action, float32>

Type something to start searching.