Yup, this is a real problem with game input on the Web platform right now. You can't get geographic keycodes, only virtual keycodes. I haven't stumbled on any specification / API proposal to fix this. Anybody know if browser vendors have something in the works?
Until then an option to choose Dvorak for the user and manual remapping of the keys would work for apps that want to support those keyboards.
good idea !
Yeah but then you need to support AZERTY (French), QWERTZ (Central Europe) and lots of other layouts too if you want to cover most people.
Interestingly, it uses WASD for rowing, but the arrow keys (or the mouse) for diving.