API Docs for: 0.0.2
Show:

Atlantis.TouchPanel Class

Module: Framework
Parent Module: Atlantis

This class is responsible to manage touch events.

Constructor

Atlantis.TouchPanel

(
  • The
)

Parameters:

  • The HTMLElement

    DOM element to use for events (default is document.body).

Item Index

Methods

getCapabilities

() Object

Gets the capabilities of the touch panel.

Returns:

Object:

Return an object which contains touch panel capabilities.

getState

(
  • id
)
Array | Atlantis.TouchPanelState

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.