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

Function Input_History_Add

src/input/input.c:298–308  ·  view source on GitHub ↗

* Add a value to the history buffer. * @param value New value to add. * @return \c 1 if adding fails, \c 0 if successful. */

Source from the content-addressed store, hash-verified

296 * @return \c 1 if adding fails, \c 0 if successful.
297 */
298static uint16 Input_History_Add(uint16 value)
299{
300 uint16 index;
301
302 index = (s_historyTail + 2) & 0xFF;
303 if (index == s_historyHead) return 1;
304
305 s_history[s_historyTail / 2] = value;
306 s_historyTail = index;
307 return 0;
308}
309
310/** Read input event from file. */
311static void Input_ReadInputFromFile(void)

Callers 1

Input_HandleInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected