frees ui input cache
| 223 | } |
| 224 | // frees ui input cache |
| 225 | void 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. |
| 238 | void ui_KeyFlush() { |
| 239 | UI_input.key = 0; |