Browse Source

Don't process raw input when the window is being dragged or clicked on.

Sam Lantinga 4 năm trước cách đây
mục cha
commit
5d455cabf9
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/video/windows/SDL_windowsevents.c

+ 4 - 0
src/video/windows/SDL_windowsevents.c

@@ -731,6 +731,10 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                 }
             }
 
+            if (data->in_title_click || data->focus_click_pending) {
+                break;
+            }
+
             GetRawInputData(hRawInput, RID_INPUT, &inp, &size, sizeof(RAWINPUTHEADER));
 
             /* Mouse data (ignoring synthetic mouse events generated for touchscreens) */