I couldn’t find any solutions regarding mouseLeave/mouseEnter event for the window/canvas.
I tried to use
//code
CameraLookAround.prototype.onMouseMove = function (event) {
console.log("W " + this.app.graphicsDevice.canvas.clientWidth + " X " + event.x);
console.log("H " + this.app.graphicsDevice.canvas.clientHeight + " Y " + event.y);
};
But it’s often off by 10-20pixels? I would appreciate if anyone could offer me a workaround.
Thanks in advance