amorgan Posted July 6, 2017 Share Posted July 6, 2017 Another 2.4 to 3.0 issue. I have assigned W, A, S, D to a camera for movement ( http://www.babylonjs-playground.com/#3H5RJW ). In my app I need to click before being able to use movement controls. I think I duplicated the issue in the playground linked, but it also seems like it is a focus issue, but I don't have a 2.4 playground to compare it against (this appears to happen in 2.5 also). Just to be clear, in my app, using 2.4, I can immediately press movement controls (W, A, S, or D) and move, but now with 3.0 I need to click before this is possible. Thank you, amorgan Quote Link to comment Share on other sites More sharing options...
haestflod Posted July 6, 2017 Share Posted July 6, 2017 In your app is your canvas focused? I added `document.getElementById("renderCanvas").focus();` and it works for me in the playground you have.http://www.babylonjs-playground.com/#3H5RJW#1 amorgan 1 Quote Link to comment Share on other sites More sharing options...
amorgan Posted July 6, 2017 Author Share Posted July 6, 2017 @haestflod Thanks for the response. That does resolve the issue. It makes sense that it would need focus, is there documentation on this change anywhere? Or what resulted in this change? Thanks, amorgan 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.