Detect when mouse pointer leaves game / canvas

Sigh. I think I’m having a slow day, cos I know this will be a one-line: how can I detect if / when a user’s mouse or activePointer has left the game-canvas?

Feels like it was something from Phaser2 that got flipped when user input was no longer focused or hovering over the Game canvas anymore.

Yes, I knew I wasn’t crazy re. Phaser 2: there was the withinGame against the pointer, but that doesn’t appear to exist anymore in Phaser 3?

Phaser.Input.Events.GAME_OUT

@prob Boom, knew it was something obvious. Thanks :+1: