In my situation PlayCanvas is a layer above a standard html page. When the game is not started yet, all mouse events should go to this standard html layer. And when the game starts, PlayCanvas should be able to process the mouse events. How can I do that?
When I do not create a mouse object like this:
canvas = document.getElementById('screen-canvas');
screenCanvasApp = new pc.Application(canvas, {
//mouse: new pc.Mouse(canvas),
touch: new pc.TouchDevice(canvas),
keyboard: new pc.Keyboard(window),
graphicsDeviceOptions: { alpha: true },
});
the mouse events still are not processed by the underlaying html page.