- stop using ToAscii() and use ToUncode()
- remember that ToUnicode may return you nothing on dead keys - this is why they are called dead keys.
- Any key will have a scancode or a virtual key code but not necessary a character.
You shouldn't combine the buttons with characters - assuming that any key/button has a text representation (Unicode) is wrong.
So:
- for input text use the characters reported by Windows
- for checking button pressed (ex. games) use scancodes or virtual keys (probably virtual keys are better).
- for keyboard shortcuts use virtual key codes.
Sorin Sbarnea
2009-12-28 16:51:47