aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/llwindowmacosx.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:58 -0500
committerJacek Antonelli2008-08-15 23:44:58 -0500
commit089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch)
tree0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/llwindow/llwindowmacosx.cpp
parentSecond Life viewer sources 1.16.0.5 (diff)
downloadmeta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz
Second Life viewer sources 1.17.0.12
Diffstat (limited to 'linden/indra/llwindow/llwindowmacosx.cpp')
-rw-r--r--linden/indra/llwindow/llwindowmacosx.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/linden/indra/llwindow/llwindowmacosx.cpp b/linden/indra/llwindow/llwindowmacosx.cpp
index b2a1ccf..0c5d6ed 100644
--- a/linden/indra/llwindow/llwindowmacosx.cpp
+++ b/linden/indra/llwindow/llwindowmacosx.cpp
@@ -2177,6 +2177,10 @@ OSStatus LLWindowMacOSX::eventHandler (EventHandlerCallRef myHandler, EventRef e
2177 case kEventMouseButtonSecondary: 2177 case kEventMouseButtonSecondary:
2178 mCallbacks->handleRightMouseDown(this, outCoords, mask); 2178 mCallbacks->handleRightMouseDown(this, outCoords, mask);
2179 break; 2179 break;
2180
2181 case kEventMouseButtonTertiary:
2182 mCallbacks->handleMiddleMouseDown(this, outCoords, mask);
2183 break;
2180 } 2184 }
2181 result = noErr; 2185 result = noErr;
2182 break; 2186 break;
@@ -2199,6 +2203,10 @@ OSStatus LLWindowMacOSX::eventHandler (EventHandlerCallRef myHandler, EventRef e
2199 case kEventMouseButtonSecondary: 2203 case kEventMouseButtonSecondary:
2200 mCallbacks->handleRightMouseUp(this, outCoords, mask); 2204 mCallbacks->handleRightMouseUp(this, outCoords, mask);
2201 break; 2205 break;
2206
2207 case kEventMouseButtonTertiary:
2208 mCallbacks->handleMiddleMouseUp(this, outCoords, mask);
2209 break;
2202 } 2210 }
2203 result = noErr; 2211 result = noErr;
2204 break; 2212 break;
@@ -2231,7 +2239,13 @@ OSStatus LLWindowMacOSX::eventHandler (EventHandlerCallRef myHandler, EventRef e
2231 2239
2232 case kEventClassWindow: 2240 case kEventClassWindow:
2233 switch(evtKind) 2241 switch(evtKind)
2234 { 2242 {
2243 case kEventWindowActivated:
2244 mCallbacks->handleFocus(this);
2245 break;
2246 case kEventWindowDeactivated:
2247 mCallbacks->handleFocusLost(this);
2248 break;
2235 case kEventWindowBoundsChanging: 2249 case kEventWindowBoundsChanging:
2236 { 2250 {
2237 Rect currentBounds; 2251 Rect currentBounds;