MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / MapNativeKey

Function MapNativeKey

src/Window_Terminal.c:220–224  ·  view source on GitHub ↗

TODO lshift, rshift

Source from the content-addressed store, hash-verified

218
219// TODO lshift, rshift
220static int MapNativeKey(DWORD vk_key) {
221 int key = vk_key < Array_Elems(key_map) ? key_map[vk_key] : 0;
222 if (!key) Platform_Log1("Unknown key: %x", &vk_key);
223 return key;
224}
225
226static void KeyEventProc(KEY_EVENT_RECORD ker) {
227 int key = MapNativeKey(ker.wVirtualKeyCode);

Callers 1

KeyEventProcFunction · 0.70

Calls 1

Platform_Log1Function · 0.85

Tested by

no test coverage detected