mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-03 04:28:12 +00:00
fix leftover event consumption tautological rule; fix a few small visual issues
This commit is contained in:
+2
-6
@@ -331,12 +331,8 @@ update_and_render(OS_Handle repaint_window_handle, void *user_data)
|
||||
next = ev->next;
|
||||
if(ev->timestamp_us+1000000 < os_now_microseconds() ||
|
||||
ev->kind == OS_EventKind_Text ||
|
||||
(ev->kind == OS_EventKind_Press && ev->key != OS_Key_LeftMouseButton) ||
|
||||
(ev->kind == OS_EventKind_Press && ev->key != OS_Key_RightMouseButton) ||
|
||||
(ev->kind == OS_EventKind_Press && ev->key != OS_Key_MiddleMouseButton) ||
|
||||
(ev->kind == OS_EventKind_Release && ev->key != OS_Key_LeftMouseButton) ||
|
||||
(ev->kind == OS_EventKind_Release && ev->key != OS_Key_RightMouseButton) ||
|
||||
(ev->kind == OS_EventKind_Release && ev->key != OS_Key_MiddleMouseButton) ||
|
||||
(ev->kind == OS_EventKind_Press && ev->key != OS_Key_LeftMouseButton && ev->key != OS_Key_RightMouseButton && ev->key != OS_Key_MiddleMouseButton) ||
|
||||
(ev->kind == OS_EventKind_Release && ev->key != OS_Key_LeftMouseButton && ev->key != OS_Key_RightMouseButton && ev->key != OS_Key_MiddleMouseButton) ||
|
||||
(ev->kind == OS_EventKind_Scroll))
|
||||
{
|
||||
os_eat_event(&leftover_events, ev);
|
||||
|
||||
Reference in New Issue
Block a user