Hi guys,
Does the html5 build support key events? For example, I want to make a character jump when the user press the spacebar. Is that possible?
Thanks!
Hi guys,
Does the html5 build support key events? For example, I want to make a character jump when the user press the spacebar. Is that possible?
Thanks!
yes
I’ve only tried on Windows, but there, at least, it seems the capitalization of keyName is off, e.g. I get “Left” rather than “left” as documented. I don’t know how pervasive this is but it affects the cursor keys and space at the very least.
Interesting, I wonder if it’s how JavaScript reports the keys. Even keys like a, b and c get returned as A, B and C. I wonder if it’s just a matter of doing the equiv of tolower() in JS before return it.
Rob
the fix will come with next daily build
yes
I’ve only tried on Windows, but there, at least, it seems the capitalization of keyName is off, e.g. I get “Left” rather than “left” as documented. I don’t know how pervasive this is but it affects the cursor keys and space at the very least.
Interesting, I wonder if it’s how JavaScript reports the keys. Even keys like a, b and c get returned as A, B and C. I wonder if it’s just a matter of doing the equiv of tolower() in JS before return it.
Rob
the fix will come with next daily build