InputSystem.addButtonEvent

Add an event to be fired when the given button changes.

class InputSystem(ButtonEnum, AxisEnum)
deprecated("Use Input.addButtonEvent with a binding instead.")
void
addButtonEvent

Parameters

buttonCode
Type: Buttons

The code of the button to add the event to.

func

The function to call when the button state changes.

Meta