For some unknown reason screen and buttons are not responding in engine-only project, its 1-1 compared to editor project, perhaps there’s something wrong in a way I load input?
const app = new pc.Application(canvas, {
mouse: new pc.Mouse(document.body),
keyboard: new pc.Keyboard(window),
touch: new pc.TouchDevice(document.body),
input: new pc.ElementInput(canvas),
graphicsDeviceOptions: {
antialias: true,
powerPreference: 'high-performance',
alpha: true
}
});
I can confirm that touch events are registered/added