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
10821082 case Qt::Key_Equal:
10831083 _myAvatar->resetSize();
10841084 break;
1085+ case Qt::Key_Escape:
1086+ OculusManager::abandonCalibration();
1087+ break;
10851088 default:
10861089 event->ignore();
10871090 break;
@@ -1474,6 +1477,7 @@ void Application::setEnableVRMode(bool enableVRMode) { · 386 unmodified lines
14741477 OculusManager::disconnect();
14751478 OculusManager::connect();
14761479 }
1480+ OculusManager::recalibrate();
14771481 }
14781482
14791483 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