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 }).
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¶
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¶
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¶
InputSystemKeyBinding.CurrentModifiers() Method¶
Held-state across left + right variants of Ctrl / Shift / Alt.
Returns¶
InputSystemKeyBinding.IsHeld() Method¶
True when the key is currently held and the held-modifier state matches Interlude.Tick.InputSystemKeyBinding.Modifiers exactly.
Returns¶
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).