History

if enable VR mode is re-checked then attempt to re-connect to Oculus

Stephen Birarda committed 12 years ago

Commit 4bf7bbe1 parent ac4d20b4 files · +17 −2Browse files

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

Unified · Split

interface/src/Application.cpp+9−0
@@ -1440,6 +1440,15 @@ void Application::setEnable3DTVMode(bool enable3DTVMode) { · 1439 unmodified lines
1440}1440}
1441 1441
1442void Application::setEnableVRMode(bool enableVRMode) {1442void Application::setEnableVRMode(bool enableVRMode) {
1443 if (enableVRMode) {
1444 if (!OculusManager::isConnected()) {
1445 // attempt to reconnect the Oculus manager - it's possible this was a workaround
1446 // for the sixense crash
1447 OculusManager::disconnect();
1448 OculusManager::connect();
1449 }
1450 }
1451
1443 resizeGL(_glWidget->width(), _glWidget->height());1452 resizeGL(_glWidget->width(), _glWidget->height());
1444}1453}
1445 1454

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