Scripting API
Scripting API
Bind
Class in Abyss.Core, from Abyss.Core.
Bindings made in code: map.Add("Jump", ActionType.Button, Bind.Key(Key.Space), Bind.Button(GamepadButton.South)).
public static class BindRemarks
Each is an InputBinding, so with sets what is done to it: Bind.Stick(GamepadStick.Left) with { Deadzone = 0.3f }.
Methods
Key
public static InputBinding Key(Key key)A key.
Parameters
key
Mouse
public static InputBinding Mouse(MouseInput input)A mouse button, or the mouse's motion, wheel or position.
Parameters
input
Button
public static InputBinding Button(GamepadButton button)A gamepad's button.
Parameters
button
Axis
public static InputBinding Axis(GamepadAxis axis)One direction of a gamepad's stick.
Parameters
axis
Stick
public static InputBinding Stick(GamepadStick stick)A gamepad's stick.
Parameters
stick
Keys
public static InputBinding Keys(Key negative, Key positive)Two keys as an axis: the positive less the negative, Bind.Keys(Key.A, Key.D).
Parameters
negativepositive
Keys
public static InputBinding Keys(Key up, Key down, Key left, Key right)Four keys as a vector at most one long, Bind.Keys(Key.W, Key.S, Key.A, Key.D).
Parameters
updownleftright
Composite
public static InputBinding Composite(BindingSource negative, BindingSource positive)Two pressed things as an axis: the positive less the negative.
Parameters
negativepositive
Composite
public static InputBinding Composite(BindingSource up, BindingSource down, BindingSource left, BindingSource right)Four pressed things as a vector at most one long.
Parameters
updownleftright
