Skip to content
Snippets Groups Projects
Commit a9d86c81 authored by Tofu Linden's avatar Tofu Linden
Browse files

CID-378

Checker: UNINIT_CTOR
Function: LLFloaterJoystick::LLFloaterJoystick(const LLSD &)
File: /indra/newview/llfloaterjoystick.cpp
parent cad4ca01
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,7 @@ LLFloaterJoystick::LLFloaterJoystick(const LLSD& data)
{
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this, "floater_joystick.xml");
initFromSettings();
}
void LLFloaterJoystick::draw()
......@@ -123,10 +124,8 @@ void LLFloaterJoystick::apply()
{
}
void LLFloaterJoystick::refresh()
void LLFloaterJoystick::initFromSettings()
{
LLFloater::refresh();
mJoystickEnabled = gSavedSettings.getBOOL("JoystickEnabled");
mJoystickAxis[0] = gSavedSettings.getS32("JoystickAxis0");
......@@ -194,6 +193,12 @@ void LLFloaterJoystick::refresh()
mFlycamFeathering = gSavedSettings.getF32("FlycamFeathering");
}
void LLFloaterJoystick::refresh()
{
LLFloater::refresh();
initFromSettings();
}
void LLFloaterJoystick::cancel()
{
gSavedSettings.setBOOL("JoystickEnabled", mJoystickEnabled);
......
......@@ -55,6 +55,8 @@ class LLFloaterJoystick : public LLFloater
LLFloaterJoystick(const LLSD& data);
virtual ~LLFloaterJoystick();
void initFromSettings();
static void onCommitJoystickEnabled(LLUICtrl*, void*);
static void onClickRestoreSNDefaults(void*);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment