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 - input/MSPointer.js, line 17
Members
-
callbackContext :object
-
The context under which callbacks are called (defaults to game).
- Source - input/MSPointer.js, line 27
-
enabled :boolean
-
MSPointer input will only be processed if enabled.
- Default Value:
- true
- Source - input/MSPointer.js, line 34
-
game :Phaser.Game
-
A reference to the currently running game.
- Source - input/MSPointer.js, line 22
Methods
-
onPointerDown(event)
-
The function that handles the PointerDown event.
Parameters:
Name Type Description event
PointerEvent The native DOM event.
- Source - 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 - 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 - input/MSPointer.js, line 140
-
start()
-
Starts the event listeners running.
- Source - input/MSPointer.js, line 58
-
stop()
-
Stop the event listeners.
- Source - input/MSPointer.js, line 159