Skip to content

InputSystemKeyBinding

interludesoftware.tick

Interlude.Tick

InputSystemKeyBinding Struct

A single key + modifier descriptor for the Input System backend. Used by every InputSystem*Bindings class; the implicit conversion from Interlude.Tick.InputSystemKeyBinding.Key keeps no-modifier bindings terse (Up = { Key.UpArrow }).

public struct InputSystemKeyBinding

Methods

InputSystemKeyBinding.AnyHeld(List\<InputSystemKeyBinding>) Method

True if any binding in bindings is currently held with its exact modifier set.

public static bool AnyHeld(System.Collections.Generic.List<Interlude.Tick.InputSystemKeyBinding> bindings);

Parameters

bindings System.Collections.Generic.List<InputSystemKeyBinding>

Returns

System.Boolean

InputSystemKeyBinding.AnyHeldKey(List\<InputSystemKeyBinding>) Method

True if any binding's key is currently held. Modifiers are ignored — see AnyHeldKey(List<LegacyKeyBinding>) for the rationale.

public static bool AnyHeldKey(System.Collections.Generic.List<Interlude.Tick.InputSystemKeyBinding> bindings);

Parameters

bindings System.Collections.Generic.List<InputSystemKeyBinding>

Returns

System.Boolean

InputSystemKeyBinding.AnyPressed(List\<InputSystemKeyBinding>) Method

True if any binding in bindings was pressed this frame with its exact modifier set.

public static bool AnyPressed(System.Collections.Generic.List<Interlude.Tick.InputSystemKeyBinding> bindings);

Parameters

bindings System.Collections.Generic.List<InputSystemKeyBinding>

Returns

System.Boolean

InputSystemKeyBinding.CurrentModifiers() Method

Held-state across left + right variants of Ctrl / Shift / Alt.

public static Interlude.Tick.ModifierMask CurrentModifiers();

Returns

ModifierMask

InputSystemKeyBinding.IsHeld() Method

True when the key is currently held and the held-modifier state matches Interlude.Tick.InputSystemKeyBinding.Modifiers exactly.

public bool IsHeld();

Returns

System.Boolean

InputSystemKeyBinding.WasPressedThisFrame() Method

True when the key was pressed this frame and the held-modifier state matches Interlude.Tick.InputSystemKeyBinding.Modifiers exactly (no extra modifiers allowed).

public bool WasPressedThisFrame();

Returns

System.Boolean