Open eonarheim opened 5 months ago
It is often useful in games to know when the pointer leaves the game canvas. For example: pausing, deselecting, performing specific game logic.
Create a new excalibur pointer event that tracks, perhaps analogous to the actor "exitviewport" and "enterviewport"
Current strategy
engine.canvas.onmouseout = () =>{ console.log('Strike!') };
This issue hasn't had any recent activity lately and is being marked as stale automatically.
Context
It is often useful in games to know when the pointer leaves the game canvas. For example: pausing, deselecting, performing specific game logic.
Proposal
Create a new excalibur pointer event that tracks, perhaps analogous to the actor "exitviewport" and "enterviewport"
Current strategy