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
On AZERTY keyboard, pressing the A key should give the code 65. Instead, it gives the code 81 of the Q letter (QWERTY).
On Ruffle web version, the layout is always QWERTY.
On Ruffle desktop, and Flash Player, it works normally.
Thank you for pointing this out, because as a German user, I have been having a similar problem:
In Germany, we use a QWERTZ layout (with "Y" and "Z" being switched), and for a lot of Flash games in RuffleWeb, typing the "Z" key returns a "Y" instead (and the other way around).
Would be super-cool if this could be fixed some day!
As always: Thanks to all Ruffle contributors, I am so grateful for your work :)
Ruffle uses KeyboardEvent.code to determine which physical key was pressed. Unfortunately that ignores keyboard layout. KeyboardEvent.key doesn't but that is the actual character, as is a or A if shift is pressed or any other letter in any alphabet.
Describe the bug
On AZERTY keyboard, pressing the A key should give the code 65. Instead, it gives the code 81 of the Q letter (QWERTY).
On Ruffle web version, the layout is always QWERTY.
On Ruffle desktop, and Flash Player, it works normally.
I made a simple test to try it out:
https://www.txori.com/stuff/ruffle/keycode_azerty.php
Expected behavior
Pressing A on AZERTY should retrieve the A Key.getCode
And that goes for every keyboard layouts.
Affected platform
Self-hosted version
Operating system
Windows 10
Browser
Chrome 97
Additional information
No response
The text was updated successfully, but these errors were encountered: