History

Merge branch 'master' into 20639

David Rowe committed 11 years ago

Commit 02ae0082 parents 212327d 4ebc75d19 files · +1611 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 19 files). Show all

Unified · Split

interface/src/Application.cpp+7−0
@@ -116,6 +116,7 @@ · 115 unmodified lines
116116 #include "devices/RealSense.h"
117117 #include "devices/SDL2Manager.h"
118118 #include "devices/TV3DManager.h"
119+#include "devices/3Dconnexion.h"
119120
120121 #include "scripting/AccountScriptingInterface.h"
121122 #include "scripting/AudioDeviceScriptingInterface.h"
@@ -646,6 +647,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 524 unmodified lines
646647 connect(applicationUpdater.data(), &AutoUpdater::newVersionIsAvailable, dialogsManager.data(), &DialogsManager::showUpdateDialog);
647648 applicationUpdater->checkForUpdate();
648649
650+ // the 3Dconnexion device wants to be initiliazed after a window is displayed.
651+ ConnexionClient::init();
652+
649653 auto& packetReceiver = nodeList->getPacketReceiver();
650654 packetReceiver.registerListener(PacketType::DomainConnectionDenied, this, "handleDomainConnectionDeniedPacket");
651655 }
@@ -760,6 +764,7 @@ Application::~Application() { · 108 unmodified lines
760764
761765 Leapmotion::destroy();
762766 RealSense::destroy();
767+ ConnexionClient::destroy();
763768
764769 qInstallMessageHandler(NULL); // NOTE: Do this as late as possible so we continue to get our log messages
765770 }
@@ -1490,6 +1495,7 @@ void Application::focusOutEvent(QFocusEvent* event) { · 724 unmodified lines
14901495 _keyboardMouseDevice.focusOutEvent(event);
14911496 SixenseManager::getInstance().focusOutEvent();
14921497 SDL2Manager::getInstance()->focusOutEvent();
1498+ ConnexionData::getInstance().focusOutEvent();
14931499
14941500 // synthesize events for keys currently pressed, since we may not get their release events
14951501 foreach (int key, _keysPressed) {
@@ -3290,6 +3296,7 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se · 1794 unmodified lines
32903296 renderContext._maxDrawnOverlay3DItems = sceneInterface->getEngineMaxDrawnOverlay3DItems();
32913297
32923298 renderContext._drawItemStatus = sceneInterface->doEngineDisplayItemStatus();
3299+ renderContext._drawHitEffect = sceneInterface->doEngineDisplayHitEffect();
32933300
32943301 renderContext._occlusionStatus = Menu::getInstance()->isOptionChecked(MenuOption::DebugAmbientOcclusion);
32953302