←back to thread

1345 points philosopher1234 | 3 comments | | HN request time: 0.001s | source
Show context
wazoox ◴[] No.34630597[source]
Unfortunately like 99% of such web games is mostly unusable if you don't have a QWERTY keyboard...
replies(2): >>34631207 #>>34631371 #
planede ◴[] No.34631371[source]
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/KeyboardEve...

replies(1): >>34631783 #
1. constantly ◴[] No.34631783[source]
This 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.
replies(2): >>34632041 #>>34642426 #
2. planede ◴[] No.34632041[source]
> 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.

3. wazoox ◴[] No.34642426[source]
Most French-speaking (AZERTY) and German-speaking (QWERTZ) countries, that's like at least 500 million people...