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

Property

Modifiers

Type

Description

active

boolean

Returns true if the controller is active.

onInput

any

Callback function that is called when the user presses/relases a key.

showJoystick

boolean

Returns true if the joystick is visible.