Class: Pointer

me. Pointer

new Pointer()

a pointer object, representing a single finger on a touch enabled device.
Source:
pointer.js, line 22

Extends

Members

<static> clientX :Number

the horizontal coordinate within the application's client area at which the event occurred
Type:
  • Number
Source:
pointer.js, line 73
See:

<static> clientY :Number

the vertical coordinate within the application's client area at which the event occurred
Type:
  • Number
Source:
pointer.js, line 83
See:

<static> event :PointerEvent|TouchEvent|MouseEvent

the originating Event Object
Type:
  • PointerEvent | TouchEvent | MouseEvent
Source:
pointer.js, line 30
See:

<static> gameLocalX :Number

Event X coordinate relative to the holding container
Type:
  • Number
Source:
pointer.js, line 149

<static> gameLocalY :Number

Event Y coordinate relative to the holding container
Type:
  • Number
Source:
pointer.js, line 158

<static> gameScreenX :Number

Event X coordinate relative to the viewport
Type:
  • Number
Source:
pointer.js, line 113

<static> gameScreenY :Number

Event Y coordinate relative to the viewport
Type:
  • Number
Source:
pointer.js, line 122

<static> gameWorldX :Number

Event X coordinate relative to the map
Type:
  • Number
Source:
pointer.js, line 131

<static> gameWorldY :Number

Event Y coordinate relative to the map
Type:
  • Number
Source:
pointer.js, line 140

<static> gameX :Number

Event normalized X coordinate within the game canvas itself
Type:
  • Number
Source:
pointer.js, line 93

<static> gameY :Number

Event normalized Y coordinate within the game canvas itself
Type:
  • Number
Source:
pointer.js, line 103

<static> pointerId :Number

The unique identifier of the contact for a touch, mouse or pen
Type:
  • Number
Source:
pointer.js, line 167
See:

<static> type :String

a string containing the event's type.
Type:
  • String
Source:
pointer.js, line 42
See:

<static> width :Boolean

indicates whether or not the pointer device that created the event is the primary pointe.
Type:
  • Boolean
Source:
pointer.js, line 63
See:

<static> width :Number

the button property indicates which button was pressed on the mouse to trigger the event.
Type:
  • Number
Source:
pointer.js, line 53
See: