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

Function ProcessKey

src/Window_Terminal.c:362–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360static float event_time;
361static float press_start[256];
362static void ProcessKey(int raw) {
363 int key = MapKey(raw);
364 if (key) {
365 Input_SetPressed(key);
366 press_start[raw] = event_time;
367 }
368
369 if (raw >= 32 && raw < 127) {
370 Event_RaiseInt(&InputEvents.Press, raw);
371 }
372}
373
374static void ProcessConsoleInput(void) {
375 char buf[256];

Callers 1

ProcessConsoleInputFunction · 0.85

Calls 3

Input_SetPressedFunction · 0.85
Event_RaiseIntFunction · 0.85
MapKeyFunction · 0.70

Tested by

no test coverage detected