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

Function input_event

win/X11/winX.c:2495–2506  ·  view source on GitHub ↗

* Before we wait for input via nhgetch() and nh_poskey(), we need to * do some pre-processing. */

Source from the content-addressed store, hash-verified

2493 * do some pre-processing.
2494 */
2495static int
2496input_event(int exit_condition)
2497{
2498 if (appResources.fancy_status && WIN_STATUS != WIN_ERR)
2499 check_turn_events(); /* hilighting on the fancy status window */
2500 if (WIN_MAP != WIN_ERR) /* make sure cursor is not clipped */
2501 check_cursor_visibility(&window_list[WIN_MAP]);
2502 if (WIN_MESSAGE != WIN_ERR) /* reset pause line */
2503 set_last_pause(&window_list[WIN_MESSAGE]);
2504
2505 return x_event(exit_condition);
2506}
2507
2508/*ARGSUSED*/
2509void

Callers 2

X11_nhgetchFunction · 0.85
X11_nh_poskeyFunction · 0.85

Calls 3

check_turn_eventsFunction · 0.85
check_cursor_visibilityFunction · 0.85
x_eventFunction · 0.85

Tested by

no test coverage detected