Methods
-
get_active_pointer()
-
Returns the active game pointer.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
game.input.activePointer -
get_current_mouse_position(direction)
-
Returns the specified coordinate value of the mouse position.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description directionwhich coordinate of the mouse position to get
Code Equivalent:
game.input.direction -
get_mouse_position_point()
-
Returns the mouse position as a point that contains the x/y values of the coordinates.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
new Phaser.Point(game.input.x, game.input.y) -
is_mouse_button_clicked()
-
Returns true/false if the specified mouse button is currently being clicked.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
game.input.mousePointer.block.getFieldValue('BUTTON').isDown