aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolgun.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2010-06-14 12:04:49 +0200
committerArmin Weatherwax2010-09-23 15:38:25 +0200
commit35df5441d3e2789663532c948731aff3a1e04728 (patch)
treeac7674289784a5f96106ea507637055a8dada78a /linden/indra/newview/lltoolgun.cpp
parentChanged version to Experimental 2010.09.18 (diff)
downloadmeta-impy-35df5441d3e2789663532c948731aff3a1e04728.zip
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.gz
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.bz2
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.xz
llmediaplugins first step
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltoolgun.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/newview/lltoolgun.cpp b/linden/indra/newview/lltoolgun.cpp
index d21fd49..f7af018 100644
--- a/linden/indra/newview/lltoolgun.cpp
+++ b/linden/indra/newview/lltoolgun.cpp
@@ -49,7 +49,8 @@
49#include "lltoolgrab.h" 49#include "lltoolgrab.h"
50 50
51LLToolGun::LLToolGun( LLToolComposite* composite ) 51LLToolGun::LLToolGun( LLToolComposite* composite )
52: LLTool( std::string("gun"), composite ) 52: LLTool( std::string("gun"), composite ),
53 mIsSelected(FALSE)
53{ 54{
54} 55}
55 56
@@ -58,6 +59,7 @@ void LLToolGun::handleSelect()
58 gViewerWindow->hideCursor(); 59 gViewerWindow->hideCursor();
59 gViewerWindow->moveCursorToCenter(); 60 gViewerWindow->moveCursorToCenter();
60 gViewerWindow->mWindow->setMouseClipping(TRUE); 61 gViewerWindow->mWindow->setMouseClipping(TRUE);
62 mIsSelected = TRUE;
61} 63}
62 64
63void LLToolGun::handleDeselect() 65void LLToolGun::handleDeselect()
@@ -65,6 +67,7 @@ void LLToolGun::handleDeselect()
65 gViewerWindow->moveCursorToCenter(); 67 gViewerWindow->moveCursorToCenter();
66 gViewerWindow->showCursor(); 68 gViewerWindow->showCursor();
67 gViewerWindow->mWindow->setMouseClipping(FALSE); 69 gViewerWindow->mWindow->setMouseClipping(FALSE);
70 mIsSelected = FALSE;
68} 71}
69 72
70BOOL LLToolGun::handleMouseDown(S32 x, S32 y, MASK mask) 73BOOL LLToolGun::handleMouseDown(S32 x, S32 y, MASK mask)
@@ -77,7 +80,7 @@ BOOL LLToolGun::handleMouseDown(S32 x, S32 y, MASK mask)
77 80
78BOOL LLToolGun::handleHover(S32 x, S32 y, MASK mask) 81BOOL LLToolGun::handleHover(S32 x, S32 y, MASK mask)
79{ 82{
80 if( gAgent.cameraMouselook() ) 83 if( gAgent.cameraMouselook() && mIsSelected )
81 { 84 {
82 const F32 NOMINAL_MOUSE_SENSITIVITY = 0.0025f; 85 const F32 NOMINAL_MOUSE_SENSITIVITY = 0.0025f;
83 86