mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
Merge pull request #56788 from Chaosus/fix_input_process
Flush input events before destroying the window
This commit is contained in:
commit
4a22eca9a1
@ -2819,6 +2819,9 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
case WM_DEVICECHANGE: {
|
||||
joypad->probe_joypads();
|
||||
} break;
|
||||
case WM_DESTROY: {
|
||||
Input::get_singleton()->flush_buffered_events();
|
||||
} break;
|
||||
case WM_SETCURSOR: {
|
||||
if (LOWORD(lParam) == HTCLIENT) {
|
||||
if (windows[window_id].window_has_focus && (mouse_mode == MOUSE_MODE_HIDDEN || mouse_mode == MOUSE_MODE_CAPTURED || mouse_mode == MOUSE_MODE_CONFINED_HIDDEN)) {
|
||||
|
Loading…
Reference in New Issue
Block a user