martinb Posted September 13, 2018 Share Posted September 13, 2018 Hi I am currently building a game with babylon that will be contained within a unit, so there will only be a screen and modules to interact with, but no mouse. I was wondering how to make it such that it isnt required for the player to click on the screen so that the keyboard can interact with it. Thank you Quote Link to comment Share on other sites More sharing options...
bghgary Posted September 13, 2018 Share Posted September 13, 2018 Depending on your HTML layout, you should be able to call focus on the HTMLCanvasElement. Quote Link to comment Share on other sites More sharing options...
martinb Posted September 14, 2018 Author Share Posted September 14, 2018 thank you very much, this is exactly what i needed bghgary 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.