mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-27 14:01:48 -07:00
rewrite ui box -> signal path for less lossy event processing & correctness; also extend to use all 3 mouse buttons. eliminate ui signal bitfields, just use flags & helper macros everywhere.
This commit is contained in:
@@ -440,6 +440,8 @@ w32_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
S16 wheel_delta = HIWORD(wParam);
|
||||
OS_Event *event = w32_push_event(OS_EventKind_Scroll, window);
|
||||
event->pos.x = (F32)LOWORD(lParam);
|
||||
event->pos.y = (F32)HIWORD(lParam);
|
||||
event->delta = v2f32(0.f, -(F32)wheel_delta);
|
||||
}break;
|
||||
|
||||
@@ -447,6 +449,8 @@ w32_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
S16 wheel_delta = HIWORD(wParam);
|
||||
OS_Event *event = w32_push_event(OS_EventKind_Scroll, window);
|
||||
event->pos.x = (F32)LOWORD(lParam);
|
||||
event->pos.y = (F32)HIWORD(lParam);
|
||||
event->delta = v2f32((F32)wheel_delta, 0.f);
|
||||
}break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user