new MSPointer(game)
Phaser - MSPointer constructor.
Parameters:
| Name | Type | Description |
|---|---|---|
game |
Phaser.Game | A reference to the currently running game. |
- Source:
Members
-
callbackContext
-
- Source:
Properties:
Name Type Description callbackContextObject The context under which callbacks are called (defaults to game).
-
disabled
-
You can disable all Input by setting disabled = true. While set all new input related events will be ignored.
- Source:
Properties:
Name Type Description disabledboolean -
game
-
- Source:
Properties:
Name Type Description gamePhaser.Game A reference to the currently running game.
Methods
-
onPointerDown(event)
-
The function that handles the PointerDown event.
Parameters:
Name Type Description eventPointerEvent - Source:
-
onPointerMove(event)
-
The function that handles the PointerMove event.
Parameters:
Name Type Description eventPointerEvent - Source:
-
onPointerUp(event)
-
The function that handles the PointerUp event.
Parameters:
Name Type Description eventPointerEvent - Source:
-
start()
-
Starts the event listeners running.
- Source:
-
stop()
-
Stop the event listeners.
- Source: