| 1269 | } |
| 1270 | |
| 1271 | KeyID MSWindowsKeyState::getKeyID(UINT virtualKey, KeyButton button) const |
| 1272 | { |
| 1273 | // Some virtual keycodes have same values. |
| 1274 | // VK_HANGUL == VK_KANA, VK_HANJA == NK_KANJI |
| 1275 | // which are used to change the input mode of IME. |
| 1276 | // But they have different X11 keysym. So we should distinguish them. |
| 1277 | if ((LOWORD(m_keyLayout) & 0xffffu) == 0x0412u) { // 0x0412 : Korean Locale ID |
| 1278 | if (virtualKey == VK_HANGUL || virtualKey == VK_HANJA) { |
| 1279 | // If shift-space is used to change the input mode, |
| 1280 | // the extented bit is not set. So add it to get right key id. |
| 1281 | button |= 0x100u; |
| 1282 | } |
| 1283 | } |
| 1284 | |
| 1285 | if ((button & 0x100u) != 0) { |
| 1286 | virtualKey += 0x100u; |
| 1287 | } |
| 1288 | return s_virtualKey[virtualKey]; |
| 1289 | } |
| 1290 | |
| 1291 | UINT MSWindowsKeyState::mapButtonToVirtualKey(KeyButton button) const |
| 1292 | { |
nothing calls this directly
no outgoing calls
no test coverage detected