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

Function win32con_debug_keystrokes

sys/windows/consoletty.c:1976–1990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1974
1975#ifdef PORT_DEBUG
1976void
1977win32con_debug_keystrokes(void)
1978{
1979 DWORD count;
1980 boolean valid = 0;
1981 int ch = 0;
1982 xputs("\n");
1983 while (!valid || ch != 27) {
1984 nocmov(ttyDisplay->curx, ttyDisplay->cury);
1985 ReadConsoleInput(console.hConIn, &gbl_ir, 1, &count);
1986 if ((gbl_ir.EventType == KEY_EVENT) && gbl_ir.Event.KeyEvent.bKeyDown)
1987 ch = process_keystroke(&gbl_ir, &valid, (uchar) iflags.num_pad, 1);
1988 }
1989 (void) doredraw();
1990}
1991void
1992win32con_toggle_cursor_info(void)
1993{

Callers

nothing calls this directly

Calls 4

process_keystrokeFunction · 0.85
doredrawFunction · 0.85
xputsFunction · 0.70
nocmovFunction · 0.70

Tested by

no test coverage detected