mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 21:38:40 +00:00
preserve per-event mouse coordinates; prefer in ui signal producing codepath
This commit is contained in:
@@ -71,6 +71,7 @@ struct OS_Event
|
||||
B32 right_sided;
|
||||
U32 character;
|
||||
U32 repeat_count;
|
||||
Vec2F32 pos;
|
||||
Vec2F32 delta;
|
||||
String8List strings;
|
||||
};
|
||||
|
||||
@@ -416,6 +416,8 @@ w32_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
event->key = OS_Key_RightMouseButton;
|
||||
}break;
|
||||
}
|
||||
event->pos.x = (F32)LOWORD(lParam);
|
||||
event->pos.y = (F32)HIWORD(lParam);
|
||||
if(release)
|
||||
{
|
||||
ReleaseCapture();
|
||||
|
||||
Reference in New Issue
Block a user