Pointer#Pointer

new Pointer(game, id, pointerMode)

A Pointer object is used by the Mouse, Touch and MSPoint managers and represents a single finger on the touch screen.

Parameters
Name Type Default Description
game Phaser.Game

A reference to the currently running game.

id number

The ID of the Pointer object within the game. Each game can have up to 10 active pointers.

pointerMode Phaser.PointerMode (CURSOR | CONTACT)

The operational mode of this pointer, eg. CURSOR or TOUCH.

Source code: input/Pointer.js (Line 16)
doc_phaser
2017-02-14 11:06:07
Comments
Leave a Comment

Please login to continue.