mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 13:51:29 +00:00
Added middle button doubleclick, fixes #15567
This commit is contained in:
parent
a60896869e
commit
0f00384c93
@ -462,7 +462,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
case WM_MOUSEWHEEL:
|
||||
case WM_MOUSEHWHEEL:
|
||||
case WM_LBUTTONDBLCLK:
|
||||
case WM_RBUTTONDBLCLK:
|
||||
case WM_MBUTTONDBLCLK case WM_RBUTTONDBLCLK:
|
||||
/*case WM_XBUTTONDOWN:
|
||||
case WM_XBUTTONUP: */ {
|
||||
|
||||
@ -520,6 +520,12 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
mb->set_button_index(2);
|
||||
mb->set_doubleclick(true);
|
||||
} break;
|
||||
case WM_MBUTTONDBLCLK: {
|
||||
|
||||
mb->set_pressed(true);
|
||||
mb->set_button_index(3);
|
||||
mb->set_doubleclick(true);
|
||||
} break;
|
||||
case WM_MOUSEWHEEL: {
|
||||
|
||||
mb->set_pressed(true);
|
||||
|
Loading…
Reference in New Issue
Block a user