diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-09-07 20:17:26 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-09-08 21:05:06 +0300 |
| commit | c37498bb4017e89654c0687a3f84792ecb445c47 (patch) | |
| tree | ebf9228a8df5a590f0df1090b854a9b8418ac4b1 /indra/llwindow/llwindowsdl.cpp | |
| parent | d5d5fd815f2833bdc968d35a213a12380ac0dec6 (diff) | |
#6243 Double RMB support
Diffstat (limited to 'indra/llwindow/llwindowsdl.cpp')
| -rw-r--r-- | indra/llwindow/llwindowsdl.cpp | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index e3ae9493a6..5e30f4dcca 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -1281,17 +1281,35 @@ SDL_AppResult LLWindowSDL::handleEvent(const SDL_Event& event) if (event.button.button == SDL_BUTTON_LEFT) // left { if (event.button.clicks == 2) - mCallbacks->handleDoubleClick(this, openGlCoord, mask); + { + mCallbacks->handleLeftMouseDoubleClick(this, openGlCoord, mask); + } else + { mCallbacks->handleMouseDown(this, openGlCoord, mask); + } } else if (event.button.button == SDL_BUTTON_RIGHT) { - mCallbacks->handleRightMouseDown(this, openGlCoord, mask); + if (event.button.clicks == 2) + { + mCallbacks->handleRightMouseDoubleClick(this, openGlCoord, mask); + } + else + { + mCallbacks->handleRightMouseDown(this, openGlCoord, mask); + } } else if (event.button.button == SDL_BUTTON_MIDDLE) // middle { - mCallbacks->handleMiddleMouseDown(this, openGlCoord, mask); + if (event.button.clicks == 2) + { + mCallbacks->handleMiddleMouseDoubleClick(this, openGlCoord, mask); + } + else + { + mCallbacks->handleMiddleMouseDown(this, openGlCoord, mask); + } } else { |
