Scripting API
Scripting API
InputNames
Class in Abyss.Core, from Abyss.Core.
What keys and buttons are called where a player reads them: Space, Up Arrow, Left Shift; a gamepad's by its maker — A, Cross or B for the one at the bottom. What PlayerInput.Prompt says, for a game's own menus as well.
public static class InputNamesMethods
Of
public static string Of(BindingSource source, GamepadKind pad = Other)What source is called, a gamepad's button as pad's maker labels it.
Parameters
sourcepad
Of
public static string Of(InputBinding binding, GamepadKind pad = Other)What binding is called: its source, or a composite's parts one after another — W/A/S/D, up, left, down and right as they sit on the keys; A/D.
Parameters
bindingpad
Key
public static string Key(string name)A key's name as people say it: ArrowUp is Up Arrow, ShiftLeft Left Shift, Digit1 1.
Parameters
name
Button
public static string Button(GamepadButton button, GamepadKind pad = Other)A gamepad's button as pad's maker labels it; by where it is — South, Left Shoulder — for GamepadKind.Other.
Parameters
buttonpad
DeviceOf
public static InputDeviceKind DeviceOf(BindingSource source)Which device source is on: the keyboard and mouse, or a gamepad.
Parameters
source
DeviceOf
public static InputDeviceKind DeviceOf(InputBinding binding)Which device binding is on: its source's, or a composite's first part's.
Parameters
binding
