diff options
| author | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2026-10-13 14:34:41 -0400 |
|---|---|---|
| committer | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2026-10-13 14:34:41 -0400 |
| commit | 181fd93f799e15a6ff924362c4a05be8db3639af (patch) | |
| tree | f3a3a530b80b1b17e71c7b6d7fa8b981b52c61f9 /indra/llwindow/llwindowmacosx.cpp | |
| parent | 8ba5d1a8adc47c21b23d9482e72de9517f9a98fc (diff) | |
| parent | 083db782e29434ab17963fcac76b0ec3cd93b9d0 (diff) | |
Merge remote-tracking branch 'origin/release/26.5' into geenz/main-26.5
Diffstat (limited to 'indra/llwindow/llwindowmacosx.cpp')
| -rw-r--r-- | indra/llwindow/llwindowmacosx.cpp | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp index 7310e5b2fa..085f4bd049 100644 --- a/indra/llwindow/llwindowmacosx.cpp +++ b/indra/llwindow/llwindowmacosx.cpp @@ -387,7 +387,7 @@ void callLeftMouseUp(float *pos, MASK mask) } -void callDoubleClick(float *pos, MASK mask) +void callLeftDoubleClick(float* pos, MASK mask) { if (!gWindowImplementation) { @@ -401,7 +401,41 @@ void callDoubleClick(float *pos, MASK mask) LLCoordGL outCoords; outCoords.mX = ll_round(pos[0]); outCoords.mY = ll_round(pos[1]); - gWindowImplementation->getCallbacks()->handleDoubleClick(gWindowImplementation, outCoords, gKeyboard->currentMask(true)); + gWindowImplementation->getCallbacks()->handleLeftMouseDoubleClick(gWindowImplementation, outCoords, gKeyboard->currentMask(true)); +} + +void callRightDoubleClick(float* pos, MASK mask) +{ + if (!gWindowImplementation) + { + return; + } + if (gWindowImplementation->allowsLanguageInput()) + { + gWindowImplementation->interruptLanguageTextInput(); + } + + LLCoordGL outCoords; + outCoords.mX = ll_round(pos[0]); + outCoords.mY = ll_round(pos[1]); + gWindowImplementation->getCallbacks()->handleRightMouseDoubleClick(gWindowImplementation, outCoords, gKeyboard->currentMask(true)); +} + +void callMiddleDoubleClick(float* pos, MASK mask) +{ + if (!gWindowImplementation) + { + return; + } + if (gWindowImplementation->allowsLanguageInput()) + { + gWindowImplementation->interruptLanguageTextInput(); + } + + LLCoordGL outCoords; + outCoords.mX = ll_round(pos[0]); + outCoords.mY = ll_round(pos[1]); + gWindowImplementation->getCallbacks()->handleMiddleMouseDoubleClick(gWindowImplementation, outCoords, gKeyboard->currentMask(true)); } void callResize(unsigned int width, unsigned int height) |
