Gio,
My last game PT Raid uses either keyboard, mouse or touch to control the boat.
Sometimes, on a webpage, on keyboard input, the game will loose the focus and you have to click the game with the mouse to regain it.
I was wondering what is the best way to ensure that the focus remains on the game ?
I searched around, and the way to go seems to be to prevent the default behavior via event.preventDefault() but I was not sure
where that code should go, in the html file or in the app ?
As usual, any help you can provide will be appreciated.
cheers,
Shri