Added middle button doubleclick, fixes #15567
This commit is contained in:
parent
a60896869e
commit
0f00384c93
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue