aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lljoystickbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lljoystickbutton.cpp')
-rw-r--r--linden/indra/newview/lljoystickbutton.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/linden/indra/newview/lljoystickbutton.cpp b/linden/indra/newview/lljoystickbutton.cpp
index a280ca8..6e62627 100644
--- a/linden/indra/newview/lljoystickbutton.cpp
+++ b/linden/indra/newview/lljoystickbutton.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 5 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -134,7 +135,7 @@ BOOL LLJoystick::handleMouseUp(S32 x, S32 y, MASK mask)
134{ 135{
135 // llinfos << "joystick mouse up " << x << ", " << y << llendl; 136 // llinfos << "joystick mouse up " << x << ", " << y << llendl;
136 137
137 if( gViewerWindow->hasMouseCapture( this ) ) 138 if( hasMouseCapture() )
138 { 139 {
139 mLastMouse.set(x, y); 140 mLastMouse.set(x, y);
140 mHeldDown = FALSE; 141 mHeldDown = FALSE;
@@ -147,7 +148,7 @@ BOOL LLJoystick::handleMouseUp(S32 x, S32 y, MASK mask)
147 148
148BOOL LLJoystick::handleHover(S32 x, S32 y, MASK mask) 149BOOL LLJoystick::handleHover(S32 x, S32 y, MASK mask)
149{ 150{
150 if( gViewerWindow->hasMouseCapture( this ) ) 151 if( hasMouseCapture() )
151 { 152 {
152 mLastMouse.set(x, y); 153 mLastMouse.set(x, y);
153 } 154 }
@@ -172,7 +173,9 @@ void LLJoystick::onHeldDown(void *userdata)
172{ 173{
173 LLJoystick *self = (LLJoystick *)userdata; 174 LLJoystick *self = (LLJoystick *)userdata;
174 175
175 llassert( gViewerWindow->hasMouseCapture( self ) ); 176 // somebody removed this function without checking the
177 // build. Removed 2007-03-26.
178 //llassert( gViewerWindow->hasMouseCapture( self ) );
176 179
177 self->mHeldDown = TRUE; 180 self->mHeldDown = TRUE;
178 self->onHeldDown(); 181 self->onHeldDown();