Reputation: 432
By 'remapped' I mean by using the Windows feature for automatically translating scan codes to other scan codes. This is configured by tools like KeyTweak, or directly through editing a certain registry key.
If you use WM_KEYDOWN messages and friends, you get the correctly remapped keys. The same goes for DirectInput. But not so for Raw Input. Is there a way to get the remapped keys? I don't need the original scan codes or VK codes, just the remapped ones.
MSDN says that DirectInput when used for keyboard input is a wrapper for Raw Input. But somehow DirectInput gets you the remapped keys, while Raw Input does not.
Upvotes: 0
Views: 1746
Reputation: 2433
My guess is that DI reads the Scancode Map value from the registry when initialized and translates the key codes internally. Here is some old, but still correct, documentation on the "Scancode Map" registry value.
Upvotes: 1