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

Function MapKey

src/Window_Terminal.c:350–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350static int MapKey(int key) {
351 if (key == ' ') return CCKEY_SPACE;
352
353 if (key >= 'a' && key <= 'z') key -= 32;
354 if (key >= 'A' && key <= 'Z') return key;
355
356 Platform_Log1("Unknown key: %i", &key);
357 return 0;
358}
359
360static float event_time;
361static float press_start[256];

Callers 2

ProcessKeyFunction · 0.70
ProcessConsoleEventsFunction · 0.70

Calls 1

Platform_Log1Function · 0.85

Tested by

no test coverage detected