MCPcopy Create free account
hub / github.com/NetHack/NetHack / process_keystroke

Function process_keystroke

sys/windows/consoletty.c:1058–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056}
1057
1058int
1059process_keystroke(
1060 INPUT_RECORD *ir,
1061 boolean *valid,
1062 uchar numberpad,
1063 int portdebug)
1064{
1065 int ch;
1066
1067#ifdef QWERTZ_SUPPORT
1068 if (gc.Cmd.swap_yz)
1069 numberpad |= 0x10;
1070#endif
1071 ch = keyboard_handling.pProcessKeystroke(
1072 console.hConIn, ir, valid, numberpad, portdebug);
1073#ifdef QWERTZ_SUPPORT
1074 numberpad &= ~0x10;
1075#endif
1076 /* check for override */
1077 if (ch && ch < MAX_OVERRIDES && key_overrides[ch])
1078 ch = key_overrides[ch];
1079 return ch;
1080}
1081
1082int
1083consoletty_kbhit(void)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected