diff options
author | Mikko Mustonen <mustonen.mikko@outlook.com> | 2018-09-23 12:06:55 +0300 |
---|---|---|
committer | Mikko Mustonen <mustonen.mikko@outlook.com> | 2018-09-23 12:06:55 +0300 |
commit | 33dd2c8de6d9f20a282191b7988f0ca9e37a4177 (patch) | |
tree | 45b28add25299727cf00e82aed4c0805e3c0e48a | |
parent | 2613e59f59a67d78214e58cdb8856f50bfc08b19 (diff) |
Fix zero relative motion event when clicking in MOUSE_MODE_CAPTURED
-rw-r--r-- | platform/windows/os_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index d575525f93..140a43cf0b 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -458,7 +458,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) */ } - if (window_has_focus && main_loop) + if (window_has_focus && main_loop && mm->get_relative() != Vector2()) input->parse_input_event(mm); } delete[] lpb; |