aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorArmin Weatherwax2010-06-15 19:42:08 +0200
committerArmin Weatherwax2010-07-01 12:05:56 +0200
commit6b177f923a2f70f4f452b1a70aa4e0ed2f7854fd (patch)
tree38b3b8dfe78e1ce62972e5b02b80921472e72aa1 /linden/indra
parentfix: despam streaming video "Cannot analyze alpha for image with format typ <... (diff)
downloadmeta-impy-6b177f923a2f70f4f452b1a70aa4e0ed2f7854fd.zip
meta-impy-6b177f923a2f70f4f452b1a70aa4e0ed2f7854fd.tar.gz
meta-impy-6b177f923a2f70f4f452b1a70aa4e0ed2f7854fd.tar.bz2
meta-impy-6b177f923a2f70f4f452b1a70aa4e0ed2f7854fd.tar.xz
a few tweaks to joystick code
* switch joystick enabled if plugged in at startup * leave flycam mode if going to mouselook (instead of doing nothing) * leave flycam mode on reset view [esc] (instead of doing nothing)
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llagent.cpp4
-rw-r--r--linden/indra/newview/llviewerjoystick.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp
index e8ee2a1..ef05fae 100644
--- a/linden/indra/newview/llagent.cpp
+++ b/linden/indra/newview/llagent.cpp
@@ -4068,7 +4068,7 @@ void LLAgent::changeCameraToMouselook(BOOL animate)
4068{ 4068{
4069 if (LLViewerJoystick::getInstance()->getOverrideCamera()) 4069 if (LLViewerJoystick::getInstance()->getOverrideCamera())
4070 { 4070 {
4071 return; 4071 LLViewerJoystick::getInstance()->setOverrideCamera(false);
4072 } 4072 }
4073 4073
4074 // visibility changes at end of animation 4074 // visibility changes at end of animation
@@ -4131,7 +4131,7 @@ void LLAgent::changeCameraToDefault()
4131{ 4131{
4132 if (LLViewerJoystick::getInstance()->getOverrideCamera()) 4132 if (LLViewerJoystick::getInstance()->getOverrideCamera())
4133 { 4133 {
4134 return; 4134 LLViewerJoystick::getInstance()->setOverrideCamera(false);
4135 } 4135 }
4136 4136
4137 if (LLFollowCamMgr::getActiveFollowCamParams()) 4137 if (LLFollowCamMgr::getActiveFollowCamParams())
diff --git a/linden/indra/newview/llviewerjoystick.cpp b/linden/indra/newview/llviewerjoystick.cpp
index 652e50e..d955a80 100644
--- a/linden/indra/newview/llviewerjoystick.cpp
+++ b/linden/indra/newview/llviewerjoystick.cpp
@@ -264,6 +264,8 @@ void LLViewerJoystick::init(bool autoenable)
264 // It's not a Space Navigator 264 // It's not a Space Navigator
265 gSavedSettings.setString("JoystickInitialized", "UnknownDevice"); 265 gSavedSettings.setString("JoystickInitialized", "UnknownDevice");
266 } 266 }
267
268 gSavedSettings.setBOOL("JoystickEnabled", TRUE );
267 } 269 }
268 else 270 else
269 { 271 {