MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ui_Flush

Function ui_Flush

ui/UISystem.cpp:225–236  ·  view source on GitHub ↗

frees ui input cache

Source from the content-addressed store, hash-verified

223}
224// frees ui input cache
225void ui_Flush() {
226// UI_input.mx = 0;
227// UI_input.last_mx = 0;
228// UI_input.my = 0;
229// UI_input.last_my = 0;
230 UI_input.b1_status = 0;
231 UI_input.b1_last_status = 0;
232 UI_input.b1_count = 0;
233 UIFrameTime = 0.0f;
234 UI_input.cur_time = timer_GetTime();
235 ui_KeyFlush();
236}
237// flushes out key input info currently in ui.
238void ui_KeyFlush() {
239 UI_input.key = 0;

Callers 6

ui_InitFunction · 0.85
DoUIFunction · 0.85
DoUIMethod · 0.85
PollUIFunction · 0.85
DoUIMethod · 0.85
DoUIMethod · 0.85

Calls 1

ui_KeyFlushFunction · 0.85

Tested by

no test coverage detected