C++ Win32: Converting scan code to Unicode character
问题 When I switch to Russian layout in Windows 7 and press ; key on the keyboard, I get Russian letter ж on the screen. I am working on a application where I need to detected pressed keys and draw text on the screen. The requirement is handle all supported languages. This is my code: // I scan the keyboard for pressed keys for (short key = KEY_SCAN_MIN; key <= KEY_SCAN_MAX; ++key) { if (GetAsyncKeyState(key) & 0x8000) { // When I detect a pressed key, I convert the scan code into virtual key. //