Header menu logo Mibo.Raylib

ActionState<'Action> Type

Runtime state tracking which actions are currently active. 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>
Field type: Set<'Action>

HeldTriggers

Full Usage: HeldTriggers

Field type: Set<Trigger>
Field type: Set<Trigger>

Released

Full Usage: Released

Field type: Set<'Action>
Field type: Set<'Action>

Started

Full Usage: Started

Field type: Set<'Action>
Field type: Set<'Action>

Values

Full Usage: Values

Field type: Map<'Action, float32>
Field type: Map<'Action, float32>

Type something to start searching.