Skip to content

InputActions

namespace Griff.Input;
public static class InputActions

The input actions every game has, whatever its project adds.

public static IReadOnlyDictionary<string, IReadOnlyList<InputBinding>> BuiltIn { get; }

The actions every game starts with, and their keys and buttons. Griff’s own components use them (Platformer Movement jumps with Jump, doors and levers wait for Interact), so a game can change their bindings but not remove them.

public static IReadOnlyList<string> GroupActions { get; }

The actions that pick control groups 1 to 9 when selecting (Group1 to Group9, the number keys unless rebound): GroupActions[n - 1] picks group n, and with AssignGroup held keeps the selection as it.