Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Input
/
Dom Events
Phaser 4.1.0
Phaser 4 examples
Dom Events
2
examples
Examples
2
Detect Canvas Focus
Listen for gameout and gameover input events to trigger actions when the mouse leaves or enters the game canvas.
Pointer Button Status
Demonstrates how to track pointer coordinates and check the status of specific mouse buttons, including detection of the right mouse button.