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

Function mswin_nhgetch

outdated/sys/wince/mswproc.c:1269–1282  ·  view source on GitHub ↗

int nhgetch() -- Returns a single character input from the user. -- In the tty window-port, nhgetch() assumes that tgetch() will be the routine the OS provides to read a character. Returned character _must_ be non-zero. */

Source from the content-addressed store, hash-verified

1267 Returned character _must_ be non-zero.
1268*/
1269int
1270mswin_nhgetch()
1271{
1272 PMSNHEvent event;
1273 int key = 0;
1274
1275 logDebug("mswin_nhgetch()\n");
1276
1277 while ((event = mswin_input_pop()) == NULL || event->type != NHEVENT_CHAR)
1278 mswin_main_loop();
1279
1280 key = event->kbd.ch;
1281 return (key);
1282}
1283
1284/*
1285int nh_poskey(int *x, int *y, int *mod)

Callers 2

mswin_display_nhwindowFunction · 0.70
mswin_yn_functionFunction · 0.70

Calls 3

logDebugFunction · 0.70
mswin_input_popFunction · 0.70
mswin_main_loopFunction · 0.70

Tested by

no test coverage detected