InputSystem.addAxisEvent

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

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

Parameters

axis
Type: Axes

The name of the input to add the event to.

event
Type: AxisEvent

The event to trigger when the axis state changes.

Meta