aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterjoystick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterjoystick.cpp')
-rw-r--r--linden/indra/newview/llfloaterjoystick.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterjoystick.cpp b/linden/indra/newview/llfloaterjoystick.cpp
index e581167..05e0564 100644
--- a/linden/indra/newview/llfloaterjoystick.cpp
+++ b/linden/indra/newview/llfloaterjoystick.cpp
@@ -57,6 +57,10 @@ LLFloaterJoystick::LLFloaterJoystick(const LLSD& data)
57void LLFloaterJoystick::draw() 57void LLFloaterJoystick::draw()
58{ 58{
59 bool joystick_inited = LLViewerJoystick::getInstance()->isJoystickInitialized(); 59 bool joystick_inited = LLViewerJoystick::getInstance()->isJoystickInitialized();
60 if (!joystick_inited)
61 {
62 joystick_inited = LLViewerJoystick::getInstance()->init(false);
63 }
60 childSetEnabled("enable_joystick", joystick_inited); 64 childSetEnabled("enable_joystick", joystick_inited);
61 childSetEnabled("joystick_type", joystick_inited); 65 childSetEnabled("joystick_type", joystick_inited);
62 std::string desc = LLViewerJoystick::getInstance()->getDescription(); 66 std::string desc = LLViewerJoystick::getInstance()->getDescription();