History

resolve conflicts on merge with upstream master

Stephen Birarda committed 12 years ago

Commit 348bcdb2 parents 1084483 8428b1a44 files · +745 −231Browse files

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

Unified · Split

interface/src/Application.cpp+20−3
@@ -910,7 +910,9 @@ void Application::keyPressEvent(QKeyEvent* event) { · 909 unmodified lines
910910 break;
911911
912912 case Qt::Key_D:
913− _myAvatar->setDriveKeys(ROT_RIGHT, 1.f);
913+ if (!isMeta) {
914+ _myAvatar->setDriveKeys(ROT_RIGHT, 1.f);
915+ }
914916 break;
915917
916918 case Qt::Key_Return:
@@ -1079,7 +1081,7 @@ void Application::keyReleaseEvent(QKeyEvent* event) { · 162 unmodified lines
10791081 _keysPressed.remove(event->key());
10801082
10811083 _controllerScriptingInterface.emitKeyReleaseEvent(event); // send events to any registered scripts
1082−
1084+
10831085 // if one of our scripts have asked to capture this event, then stop processing it
10841086 if (_controllerScriptingInterface.isKeyCaptured(event)) {
10851087 return;
@@ -1131,7 +1133,12 @@ void Application::keyReleaseEvent(QKeyEvent* event) { · 45 unmodified lines
11311133 _myAvatar->setDriveKeys(RIGHT, 0.f);
11321134 _myAvatar->setDriveKeys(ROT_RIGHT, 0.f);
11331135 break;
1134−
1136+ case Qt::Key_Control:
1137+ case Qt::Key_Shift:
1138+ case Qt::Key_Meta:
1139+ case Qt::Key_Alt:
1140+ _myAvatar->clearDriveKeys();
1141+ break;
11351142 default:
11361143 event->ignore();
11371144 break;
@@ -2730,6 +2737,9 @@ void Application::displaySide(Camera& whichCamera, bool selfAvatarOnly) { · 1592 unmodified lines
27302737 PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), "Application::displaySide()");
27312738 // transform by eye offset
27322739
2740+ // load the view frustum
2741+ loadViewFrustum(whichCamera, _displayViewFrustum);
2742+
27332743 // flip x if in mirror mode (also requires reversing winding order for backface culling)
27342744 if (whichCamera.getMode() == CAMERA_MODE_MIRROR) {
27352745 glScalef(-1.0f, 1.0f, 1.0f);
@@ -2977,7 +2987,14 @@ void Application::getProjectionMatrix(glm::dmat4* projectionMatrix) { · 241 unmodified lines
29772987 void Application::computeOffAxisFrustum(float& left, float& right, float& bottom, float& top, float& nearVal,
29782988 float& farVal, glm::vec4& nearClipPlane, glm::vec4& farClipPlane) const {
29792989
2990+ // allow 3DTV/Oculus to override parameters from camera
29802991 _viewFrustum.computeOffAxisFrustum(left, right, bottom, top, nearVal, farVal, nearClipPlane, farClipPlane);
2992+ if (OculusManager::isConnected()) {
2993+ OculusManager::overrideOffAxisFrustum(left, right, bottom, top, nearVal, farVal, nearClipPlane, farClipPlane);
2994+
2995+ } else if (TV3DManager::isConnected()) {
2996+ TV3DManager::overrideOffAxisFrustum(left, right, bottom, top, nearVal, farVal, nearClipPlane, farClipPlane);
2997+ }
29812998 }
29822999
29833000 glm::vec2 Application::getScaledScreenPoint(glm::vec2 projectedPoint) {

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