float mousemove detection & ui mouse position rules down to ui core layer

This commit is contained in:
Ryan Fleury
2024-02-05 09:29:50 -08:00
parent f03f3e4421
commit f2c74cbcb2
5 changed files with 15 additions and 22 deletions
-8
View File
@@ -69,14 +69,6 @@ update_and_render(OS_Handle repaint_window_handle, void *user_data)
OS_EventList new_events = os_get_events(scratch.arena, df_gfx_state->num_frames_requested == 0);
os_event_list_concat_in_place(&events, &leftover_events_copy);
os_event_list_concat_in_place(&events, &new_events);
for(OS_Event *e = events.first; e != 0; e = e->next)
{
if(e->kind == OS_EventKind_MouseMove)
{
df_gfx_state->last_time_mousemoved_us = os_now_microseconds();
break;
}
}
}
//- rjf: enable txti change detection