os_gfx -> report mouse move events; still allow passive mouse interaction if window is unfocused, but have recently received mousemove events

This commit is contained in:
Ryan Fleury
2024-02-03 18:04:21 -08:00
parent 985a6f37e9
commit 0be4680ec9
7 changed files with 29 additions and 5 deletions
+8
View File
@@ -69,6 +69,14 @@ 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