Merged in SL-12090 (pull request #105)
SL-12090 Initialize the joystick only when required * SL-12090 Initialize the joystick only when required Approved-by: Andrey Kleshchevmeow-7.2.2
parent
8bc8b1cfd6
commit
f66fd46b2d
|
|
@ -1131,7 +1131,10 @@ bool LLAppViewer::init()
|
|||
gSimLastTime = gRenderStartTime.getElapsedTimeF32();
|
||||
gSimFrames = (F32)gFrameCount;
|
||||
|
||||
LLViewerJoystick::getInstance()->init(false);
|
||||
if (gSavedSettings.getBOOL("JoystickEnabled"))
|
||||
{
|
||||
LLViewerJoystick::getInstance()->init(false);
|
||||
}
|
||||
|
||||
try {
|
||||
initializeSecHandler();
|
||||
|
|
|
|||
|
|
@ -61,6 +61,11 @@ static LLTrace::SampleStatHandle<>* sJoystickAxes[6] =
|
|||
LLFloaterJoystick::LLFloaterJoystick(const LLSD& data)
|
||||
: LLFloater(data)
|
||||
{
|
||||
if (!LLViewerJoystick::getInstance()->isJoystickInitialized())
|
||||
{
|
||||
LLViewerJoystick::getInstance()->init(false);
|
||||
}
|
||||
|
||||
initFromSettings();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue