InputBinding
namespace Griff.Input;
public struct InputBindingA key, mouse button or gamepad button that triggers an action (see IInput.Bind). Any of the three converts to one, so a list of bindings reads Key.Space, GamepadButton.A.
Properties
Section titled “Properties”Gamepad
Section titled “Gamepad”public GamepadButton? Gamepad { get; }public Key? Key { get; }public MouseButton? Mouse { get; }Methods
Section titled “Methods”Equals
Section titled “Equals”public override bool Equals(object obj)Equals
Section titled “Equals”public bool Equals(InputBinding other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()ToString
Section titled “ToString”public override string ToString()“Space”, “Mouse Left” or “Gamepad A”: what a controls screen can show.
TryParse
Section titled “TryParse”public static bool TryParse(string? text, out InputBinding binding)Reads what ToString writes, e.g. “Gamepad A”. False for anything else.