You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #72720 from pkdawson/fix-mouse-capture
DisplayServerWindows: Fix mouse capture when button up message is missed
This commit is contained in:
@@ -3333,7 +3333,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
SetCapture(hWnd);
|
||||
}
|
||||
} else {
|
||||
if (--pressrc <= 0) {
|
||||
if (--pressrc <= 0 || last_button_state.is_empty()) {
|
||||
if (mouse_mode != MOUSE_MODE_CAPTURED) {
|
||||
ReleaseCapture();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user