- Home /
How can I get keyboard SCANCODE (not keycode)
Hello all
I'm trying to get the position of a key on the keyboard, independently of the letter that's on it.
I want to hard code controls, and make them work on several keyboard layout.
For example : that A key is the second key on the third row on a US keyboard, but on a french keyboard it's the second key on the second row. Using keycode I cannot go past this. But with the scancode I could ask for scancode 16 (which is the 2nd key on the third row, no matter what keyboard layout), and have it work.
I managed to do it using a call to user32.dll , but I would like to use something that is portable.
Anyone got a hint on how to do that ?
Your answer
Follow this Question
Related Questions
No keyboard events detected after any key is held. 0 Answers
Need help with disabiling keyboard inputs. 1 Answer
LeftControl key at runtime 0 Answers
Add keyboard input in ClickToMove 0 Answers
GetButtonDown: How does this work? 1 Answer