Platformerinputcontroller

PlatformerInputController class

This class is used to control the actions of the PlatformerControlsWrapper class.

Signature:

export declare class Controller 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Controller class.

Properties

PropertyModifiersTypeDescription
activebooleanReturns true if the controller is active.
onInputanyCallback function that is called when the user presses/relases a key.
showJoystickbooleanReturns true if the joystick is visible.