Atlantis.TouchPanel Class
This class is responsible to manage touch events.
Constructor
Atlantis.TouchPanel
(
-
The
Parameters:
-
The
HTMLElementDOM element to use for events (default is document.body).
Item Index
Methods
Methods
getCapabilities
()
Object
Gets the capabilities of the touch panel.
Returns:
Object:
Return an object which contains touch panel capabilities.
getState
(
Array | Atlantis.TouchPanelState
-
id
Get the state of the touch panel at this time.
Parameters:
-
id
Number(optional) A finger id.
Returns:
Array | Atlantis.TouchPanelState:
if no finger is passed, it return an array of Atlantis.TouchPanelState, otherwise it return an Atlantis.TouchPanelState of the finger id passed in parameter.