mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-17 06:41:27 -07:00
equip os events with timestamp; re-enable leftover event feed-forward but add timeout
This commit is contained in:
@@ -63,6 +63,7 @@ struct OS_Event
|
||||
{
|
||||
OS_Event *next;
|
||||
OS_Event *prev;
|
||||
U64 timestamp_us;
|
||||
OS_Handle window;
|
||||
OS_EventKind kind;
|
||||
OS_EventFlags flags;
|
||||
|
||||
@@ -111,6 +111,7 @@ w32_push_event(OS_EventKind kind, W32_Window *window)
|
||||
{
|
||||
OS_Event *result = push_array(w32_event_arena, OS_Event, 1);
|
||||
DLLPushBack(w32_event_list.first, w32_event_list.last, result);
|
||||
result->timestamp_us = os_now_microseconds();
|
||||
result->kind = kind;
|
||||
result->window = os_window_from_w32_window(window);
|
||||
result->flags = os_get_event_flags();
|
||||
|
||||
Reference in New Issue
Block a user