These archived docs are for Phaser 2.2.2 Phaser 3 docs can be found on newdocs.phaser.io.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

Phaser. MSPointer

new MSPointer(game)

The MSPointer class handles Microsoft touch interactions with the game and the resulting Pointer objects.

It will work only in Internet Explorer 10 and Windows Store or Windows Phone 8 apps using JavaScript. http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx

Parameters
Name Type Description
game Phaser.Game

A reference to the currently running game.

Source code: input/MSPointer.js, line 17

Public Properties

callbackContext : Object

The context under which callbacks are called (defaults to game).

Source code: input/MSPointer.js, line 27

enabled : boolean

MSPointer input will only be processed if enabled.

Default Value
  • true
Source code: input/MSPointer.js, line 34

game : Phaser.Game

A reference to the currently running game.

Source code: input/MSPointer.js, line 22

Public Methods

onPointerDown(event)

The function that handles the PointerDown event.

Parameters
Name Type Description
event PointerEvent

The native DOM event.

Source code: input/MSPointer.js, line 101

onPointerMove(event)

The function that handles the PointerMove event.

Parameters
Name Type Description
event PointerEvent

The native DOM event.

Source code: input/MSPointer.js, line 121

onPointerUp(event)

The function that handles the PointerUp event.

Parameters
Name Type Description
event PointerEvent

The native DOM event.

Source code: input/MSPointer.js, line 140

start()

Starts the event listeners running.

Source code: input/MSPointer.js, line 58

stop()

Stop the event listeners.

Source code: input/MSPointer.js, line 159