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
You should not normally access this class directly, but instead use a Phaser.Pointer object which
normalises all game input for you including accurate button handling.
Please note that at the current time of writing Phaser does not yet support chorded button interactions:
http://www.w3.org/TR/pointerevents/#chorded-button-interactions
Name | Type | Description |
---|---|---|
game | Phaser.Game | A reference to the currently running game. |
This property was removed in Phaser 2.4 and should no longer be used.
Instead please see the Pointer button properties such as Pointer.leftButton
, Pointer.rightButton
and so on.
Or Pointer.button holds the DOM event button value if you require that.
The context under which callbacks are called (defaults to game).
If true the Pointer events will have event.preventDefault applied to them, if false they will propagate fully.
MSPointer input will only be processed if enabled.
The browser MSPointer DOM event. Will be null if no event has ever been received.
Access this property only inside a Pointer event handler and do not keep references to it.
A reference to the currently running game.
A reference to the Phaser Input Manager.
A callback that can be fired on a MSPointerDown event.
A callback that can be fired on a MSPointerMove event.
A callback that can be fired on a MSPointerUp event.
The function that handles the PointerDown event.
Name | Type | Description |
---|---|---|
event | PointerEvent | The native DOM event. |
The function that handles the PointerMove event.
Name | Type | Description |
---|---|---|
event | PointerEvent | The native DOM event. |
The internal method that handles the pointer out event from the browser.
Name | Type | Description |
---|---|---|
event | PointerEvent | The native event from the browser. This gets stored in MSPointer.event. |
The internal method that handles the pointer out event from the browser.
Name | Type | Description |
---|---|---|
event | PointerEvent | The native event from the browser. This gets stored in MSPointer.event. |
The function that handles the PointerUp event.
Name | Type | Description |
---|---|---|
event | PointerEvent | The native DOM event. |
The internal method that handles the mouse up event from the window.
Name | Type | Description |
---|---|---|
event | PointerEvent | The native event from the browser. This gets stored in MSPointer.event. |
Starts the event listeners running.
Stop the event listeners.
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.MSPointer.html