MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Input_IsInputAvailable

Function Input_IsInputAvailable

src/input/input.c:541–548  ·  view source on GitHub ↗

* Is input available? * @return \c 0 if no input, else a value. */

Source from the content-addressed store, hash-verified

539 * @return \c 0 if no input, else a value.
540 */
541uint16 Input_IsInputAvailable(void)
542{
543 uint16 value;
544
545 value = s_historyHead ^ s_historyTail;
546
547 return Input_AddHistory(value);
548}
549
550/**
551 * Wait for input, and return the read event.

Callers 2

GameLoop_HandleEventsFunction · 0.85
GUI_Widget_HandleEventsFunction · 0.85

Calls 1

Input_AddHistoryFunction · 0.85

Tested by

no test coverage detected