Binding

Allows representation of input from multiple sources in a uniform way

Members

Functions

bindButton
void bindButton(int button, Key key)
bindButton
void bindButton(int button, ControllerButton controllerButton)
bindController
void bindController(int index)
bindInput
void bindInput(Input input)

Must be called before using any other method

bindStick
void bindStick(int stick, Key up, Key left, Key down, Key right)

Simulates a joystick using four keys

bindStick
void bindStick(int stick, ThumbStick joystick)
buttonJustPressed
bool buttonJustPressed(int button)
getStick
Vector2 getStick(int stick)
isButtonDown
bool isButtonDown(int button)
isButtonUp
bool isButtonUp(int button)

Properties

deadzone
float deadzone [@property getter]

Forward of deadzone on Controller

deadzone
float deadzone [@property setter]

Forward of deadzone on Controller

Meta