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
-
button
-
- Source - input/MSPointer.js, line 53
Properties:
Name Type Description button-
number The type of click, either: Phaser.Mouse.NO_BUTTON, Phaser.Mouse.LEFT_BUTTON, Phaser.Mouse.MIDDLE_BUTTON or Phaser.Mouse.RIGHT_BUTTON.
-
callbackContext :object
-
The context under which callbacks are called (defaults to game).
- Source - input/MSPointer.js, line 27
-
capture :boolean
-
If true the Pointer events will have event.preventDefault applied to them, if false they will propagate fully.
- Source - input/MSPointer.js, line 47
-
enabled :boolean
-
MSPointer input will only be processed if enabled.
- Default Value:
- true
- Source - input/MSPointer.js, line 68
-
event :MSPointerEvent|null
-
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.
Type:
- MSPointerEvent | null
- Default Value:
- null
- Source - input/MSPointer.js, line 61
-
game :Phaser.Game
-
A reference to the currently running game.
- Source - input/MSPointer.js, line 22
-
pointerDownCallback :function
-
A callback that can be fired on a MSPointerDown event.
- Source - input/MSPointer.js, line 32
-
pointerMoveCallback :function
-
A callback that can be fired on a MSPointerMove event.
- Source - input/MSPointer.js, line 37
-
pointerUpCallback :function
-
A callback that can be fired on a MSPointerUp event.
- Source - input/MSPointer.js, line 42
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 135
-
onPointerMove(event)
-
The function that handles the PointerMove event.
Parameters:
Name Type Description event
PointerEvent The native DOM event.
- Source - input/MSPointer.js, line 168
-
onPointerUp(event)
-
The function that handles the PointerUp event.
Parameters:
Name Type Description event
PointerEvent The native DOM event.
- Source - input/MSPointer.js, line 198
-
start()
-
Starts the event listeners running.
- Source - input/MSPointer.js, line 92
-
stop()
-
Stop the event listeners.
- Source - input/MSPointer.js, line 230