History

merge with upstream

Sam Gateau committed 11 years ago

Commit ab4b9402 parents 9cf3dfd 4ebc75d38 files · +3989 −503Browse files

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

Unified · Split

interface/src/Application.cpp+8−1
@@ -115,6 +115,7 @@ · 114 unmodified lines
115115 #include "devices/MIDIManager.h"
116116 #include "devices/OculusManager.h"
117117 #include "devices/TV3DManager.h"
118+#include "devices/3Dconnexion.h"
118119
119120 #include "scripting/AccountScriptingInterface.h"
120121 #include "scripting/AudioDeviceScriptingInterface.h"
@@ -639,6 +640,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 518 unmodified lines
639640 connect(applicationUpdater.data(), &AutoUpdater::newVersionIsAvailable, dialogsManager.data(), &DialogsManager::showUpdateDialog);
640641 applicationUpdater->checkForUpdate();
641642
643+ // the 3Dconnexion device wants to be initiliazed after a window is displayed.
644+ ConnexionClient::init();
645+
642646 auto& packetReceiver = nodeList->getPacketReceiver();
643647 packetReceiver.registerListener(PacketType::DomainConnectionDenied, this, "handleDomainConnectionDeniedPacket");
644648 }
@@ -750,6 +754,7 @@ Application::~Application() { · 105 unmodified lines
750754
751755 Leapmotion::destroy();
752756 RealSense::destroy();
757+ ConnexionClient::destroy();
753758
754759 qInstallMessageHandler(NULL); // NOTE: Do this as late as possible so we continue to get our log messages
755760 }
@@ -1488,6 +1493,7 @@ void Application::focusOutEvent(QFocusEvent* event) { · 732 unmodified lines
14881493 _keyboardMouseDevice.focusOutEvent(event);
14891494 SixenseManager::getInstance().focusOutEvent();
14901495 SDL2Manager::getInstance()->focusOutEvent();
1496+ ConnexionData::getInstance().focusOutEvent();
14911497
14921498 // synthesize events for keys currently pressed, since we may not get their release events
14931499 foreach (int key, _keysPressed) {
@@ -3272,6 +3278,7 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se · 1778 unmodified lines
32723278 renderContext._maxDrawnOverlay3DItems = sceneInterface->getEngineMaxDrawnOverlay3DItems();
32733279
32743280 renderContext._drawItemStatus = sceneInterface->doEngineDisplayItemStatus();
3281+ renderContext._drawHitEffect = sceneInterface->doEngineDisplayHitEffect();
32753282
32763283 renderContext._occlusionStatus = Menu::getInstance()->isOptionChecked(MenuOption::DebugAmbientOcclusion);
32773284
@@ -3389,7 +3396,7 @@ void Application::renderRearViewMirror(RenderArgs* renderArgs, const QRect& regi · 111 unmodified lines
33893396 // This was removed in commit 71e59cfa88c6563749594e25494102fe01db38e9 but could be further
33903397 // investigated in order to adapt the technique while fixing the head rendering issue,
33913398 // but the complexity of the hack suggests that a better approach
3392− _mirrorCamera.setPosition(_myAvatar->getHead()->getEyePosition() +
3399+ _mirrorCamera.setPosition(_myAvatar->getDefaultEyePosition() +
33933400 _myAvatar->getOrientation() * glm::vec3(0.0f, 0.0f, -1.0f) * MIRROR_REARVIEW_DISTANCE * _myAvatar->getScale());
33943401 }
33953402 _mirrorCamera.setProjection(glm::perspective(glm::radians(fov), aspect, DEFAULT_NEAR_CLIP, DEFAULT_FAR_CLIP));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t