[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

unable to get proper keyboard scancode for non US keyboard #150

Open
qunying opened this issue Aug 10, 2021 · 1 comment
Open

unable to get proper keyboard scancode for non US keyboard #150

qunying opened this issue Aug 10, 2021 · 1 comment

Comments

@qunying
Copy link
qunying commented Aug 10, 2021

Hi,

I am developing an RDP client with emscripten+SDL2, everything works on US keyboard, but once change to non US keyboard (Italian/German, etc), some keys would get the wrong scancode.

Not sure how emscirpten is translating its key event to the SDL library, as modern browsers do provide correct scancode from KeyboardEvent.code.

Any pointers for me to do a proper mapping from KeyboardEvent.code to SDL's scancode?

@Daft-Freak
Copy link
Member

It's currently using the old keyCode I was working on updating to code at one point (#117). Not sure why that's still draft, possibly a lack of testing.

I really need to find some time to clean up old PRs/issues...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants