Static
MAX_A reference to the tween instance this controller uses to tween the alpha when it becomes inactive. This reference is so that developers can pause this tween and resume it when needed. Calling this.tween.pause() and this.tween.resume() for instance when pausing and unpausing the game.
The joyring element of this controller.
The joystick element of this controller.
The version of the module.
The options of this controller.
The locked dimension of the joystick. both | vertical | horizontal. This is used to lock the joystick from moving in certain dimensions. If this joystick's type is traversal it cannot be locked.
The zone the joystick will occupy. If there is already a controller of the traversal or static type, then you must use a zone. If there is only one controller no zone is needed. left | right This will give each controller equal space on the left | right sides of the screen.
Whether this controller is active in zone. e.g the controller is zoned to the left, and the user taps on the left side of the screen.
The fingerID that is controlling the joystick.
Whether this controller is active
Event function for when the joystick is released.
Event function for when the joystick is moved.
Builds this controller with the options that were passed in.
The options of this controller.
Updates the controllers position with the latest information from touch events
The x position on the screen where the user tapped.
The y position on the screen where the user tapped.
Optional
pTouchStart: booleanIf this was the first time the joystick was touched.
Returns the components that make up this controller. Which are the joystick element, and the joyring element.
An object containing references to the joytick and the joyring that makeup this controller.
The maximum layer