Hi everyone, I’m currently developing a game on phaser 3 a nd now I need to read the global cursor movement, not just on the game canvas to avoid weird problems. I already tried to use camera.getWorldPoint in conjunction with reading mouse coords from document.onmousemove events, but it did not give the desired result.
So, is there any way to convert screen coords to world coords or simply make the pointermove event work outside the game canvas as well?
new Phaser.Game({
input: { mouse: { target: window } },
// etc.
});