Static
MULTI_Static
NO_Whether or not an instance can be touched or not. If their touchOpacity is set to NO_TOUCH, it cannot be touched
Static
MAX_The max number of controllers that can be recycled
Static
MAX_The maximum layer
An array of all controllers that have been recycled
An array of all controllers that are active
An object holding the controllers in zones
An array that holds all the diobs that are currently being touched
An object that stores the mapPosition over the screen
An array that holds the current screen zones taken, 'left' or 'right'.
An object holding the current window size
The middle of the screen's x coordinate. This is used to figure out which side of the screen is being interacted with.
Weakmap to track data belonging to instances used in this module.
The version of the module.
The logger module this module uses to log errors / logs
The mobile handler interface that our controllers will exist in
An object containing the safe area offset values to account for the notch on notch enabled devices.
Check if the user agent string contains 'iPhone' or 'iPad'
Check if the user agent string contains 'Android'
Check if the 'ontouchstart' event is supported
Whether this device is mobile or not. Can be simulated.
An object containing the safe area inset values to account for the notch on notch enabled devices. This will keep the UI in a safe area The safe-area-inset-* variables are four environment variables that define a rectangle by its top, right, bottom, and left insets from the edge of the viewport, which is safe to put content into without risking it being cut off by the shape of a non‑rectangular display. For rectangular viewports, like your average laptop monitor, their value is equal to zero. For non-rectangular displays — like a round watch face — the four values set by the user agent form a rectangle such that all content inside the rectangle is visible. https://developer.mozilla.org/en-US/docs/Web/CSS/env
The safe area inset values
Vibrates the mobile device. https://github.com/apache/cordova-plugin-vibration#readme https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API
The duration of the vibration.
Creates a controller component with the passed options.
The options of this controller.
A new controller component
Returns the tracker object associated with pTouchedInstance if it exists.
The instance that needs to be tracked.
The tracker object associated with pTouchedInstance if it exists. undefined if not.
When a finger on the screen moves, check if the fingerID belongs to a zoned controller, if it does update that zoned controller
The x position on the screen where the user tapped.
The y position on the screen where the user tapped.
The ID of the finger
Whether or not an instance can be touched by multiple fingers. If their touchOpacity is set to MULTI_TOUCH it can be interacted with multiple times via different touches.