Is there a Physics API? 🤔

I noticed something different today. The keyCode numbers are different from Hype's "On Key Press" event than manually using the following JavaScript...

window.onkeydown=function(event){

I was working on getting Fullscreen mode to work, which is ideal for gaming, when I noticed the "F" keyCode was "70" when I used "onkeydown", but "102" when using Hype's "On Key Press" scene event.

It took me a while to realize what's going on. "On Key Press" appears to be case sensitive. It doesn't register the shift key right away. So if you've been following along in this thread, wondering why the keyCode numbers don't work, it might be the difference between onkeydown and onkeypress.

1 Like