History

Add VR display auto-calibration logic

David Rowe committed 12 years ago

Commit d3b37681 parent b1e63274 files · +106 −1Browse files

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

Unified · Split

interface/src/Application.cpp+4−0
@@ -1082,6 +1082,9 @@ void Application::keyPressEvent(QKeyEvent* event) { · 1081 unmodified lines
1082 case Qt::Key_Equal:1082 case Qt::Key_Equal:
1083 _myAvatar->resetSize();1083 _myAvatar->resetSize();
1084 break;1084 break;
1085 case Qt::Key_Escape:
1086 OculusManager::abandonCalibration();
1087 break;
1085 default:1088 default:
1086 event->ignore();1089 event->ignore();
1087 break;1090 break;
@@ -1474,6 +1477,7 @@ void Application::setEnableVRMode(bool enableVRMode) { · 386 unmodified lines
1474 OculusManager::disconnect();1477 OculusManager::disconnect();
1475 OculusManager::connect();1478 OculusManager::connect();
1476 }1479 }
1480 OculusManager::recalibrate();
1477 }1481 }
1478 1482
1479 resizeGL(_glWidget->getDeviceWidth(), _glWidget->getDeviceHeight());1483 resizeGL(_glWidget->getDeviceWidth(), _glWidget->getDeviceHeight());

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