3 ms·
Why don't web games use KeyboardEvent.code for this? That would mostly resolve the issue, assuming browsers are compliant. https://developer.mozilla.org/en-US/
by planede 4y ago
Why don't web games use KeyboardEvent.code for this? That would mostly resolve the issue, assuming browsers are compliant.
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve...
- constantly 4y agoThis sounds like a lot of work to me to address a problem that only impacts 0.1% of players, and KeyboardEvent.code looks pretty obscure.
- wazoox 4y agoMost French-speaking (AZERTY) and German-speaking (QWERTZ) countries, that's like at least 500 million people...
- planede 4y ago> 0.1% of players There are entire countries with different standard keyboard layout than QWERTY, I'm pretty sure that 0.1% is inaccurate. I also remember that some desktop games handled alternative layouts just fine by default, without reconfiguring key bindings manually. I was only ever affected by QWERTZ, so the impact was limited. Apparently both desktop and web has the suitable API to handle this well, yet web games don't seem to care.