You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, I wonder how other apps/games handle this since in the settings panel the key name is shown (instead of key code). I'm not aware of a browser feature to map key codes back to key names (which would depend on the keyboard layout).
The other thing I saw recently that is kind of a good intro to how hard this is to get right is the latest HTTP 203 episode, if you're into video format.
Overall, there's a LOT to consider when it comes to input - I wouldn't expect every edge case to be handled, I just wanted to bring up the fact that movement is spread all over the keyboard for me.
Describe the bug
Non query keyboard layouts don't use keys in
wasd
position for movementTo Reproduce
Steps to reproduce the behavior:
wasd
, where ever they are on the keyboard.Expected behavior
I think most people would assume that
wars
on colemak or,aoe
on dvorak would be used for movementDesktop (please complete the following information):
Additional context
I bet this could be solved by using keydown
event.code
instead ofevent.key
(docs) for movement.The text was updated successfully, but these errors were encountered: