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

Function Input_Test

src/input/input.c:576–582  ·  view source on GitHub ↗

* Test whether \a value is available in the input. * @param value Input value. * @return \c 0 means not available. */

Source from the content-addressed store, hash-verified

574 * @return \c 0 means not available.
575 */
576uint16 Input_Test(uint16 value)
577{
578 Input_AddHistory(value);
579 value = Input_Keyboard_Translate(value);
580
581 return s_activeInputMap[value >> 3] & (1 << (value & 7));
582}
583
584/**
585 * Handle keyboard input.

Callers 4

GUI_Widget_HandleEventsFunction · 0.85
GUI_Mentat_AnimationFunction · 0.85
GUI_Purchase_ShowInvoiceFunction · 0.85

Calls 2

Input_AddHistoryFunction · 0.85
Input_Keyboard_TranslateFunction · 0.85

Tested by

no test coverage detected