| 32 | } |
| 33 | |
| 34 | inline WORD ScanCode(UINT vk_code) { |
| 35 | return static_cast<WORD>((::MapVirtualKey(vk_code, MAPVK_VK_TO_VSC)) & 0xff); |
| 36 | } |
| 37 | |
| 38 | // Windows 键盘消息的 lParam 需要同时带扫描码、扩展键和按下/抬起状态。 |
| 39 | inline LPARAM BuildKeyLParam(UINT vk_code, bool key_up, bool alt_context = false) { |
no outgoing calls
no test coverage detected