Showing the changes to interface/src/Application.cpp (1 of 16 files). Show all
Unified · Split
| @@ -432,6 +432,9 @@ void Application::paintGL() { · 431 unmodified lines | ||
| 432 | 432 | void Application::resizeGL(int width, int height) { |
| 433 | 433 | float aspectRatio = ((float)width/(float)height); // based on screen resize |
| 434 | 434 | |
| 435 | + // reset the camera FOV to our preference... | |
| 436 | + _myCamera.setFieldOfView(_horizontalFieldOfView); | |
| 437 | + | |
| 435 | 438 | // get the lens details from the current camera |
| 436 | 439 | Camera& camera = _viewFrustumFromOffset->isChecked() ? _viewFrustumOffsetCamera : _myCamera; |
| 437 | 440 | float nearClip = camera.getNearClip(); |
| @@ -953,6 +956,8 @@ void Application::terminate() { · 515 unmodified lines | ||
| 953 | 956 | // Close serial port |
| 954 | 957 | // close(serial_fd); |
| 955 | 958 | |
| 959 | + LeapManager::terminate(); | |
| 960 | + | |
| 956 | 961 | if (_settingsAutosave->isChecked()) { |
| 957 | 962 | saveSettings(); |
| 958 | 963 | _settings->sync(); |
| @@ -1645,6 +1650,8 @@ void Application::init() { · 686 unmodified lines | ||
| 1645 | 1650 | QMetaObject::invokeMethod(_fullScreenMode, "trigger", Qt::QueuedConnection); |
| 1646 | 1651 | } |
| 1647 | 1652 | |
| 1653 | + LeapManager::initialize(); | |
| 1654 | + | |
| 1648 | 1655 | gettimeofday(&_timerStart, NULL); |
| 1649 | 1656 | gettimeofday(&_lastTimeIdle, NULL); |
| 1650 | 1657 | |
| @@ -1803,7 +1810,8 @@ void Application::update(float deltaTime) { · 152 unmodified lines | ||
| 1803 | 1810 | |
| 1804 | 1811 | // Leap finger-sensing device |
| 1805 | 1812 | LeapManager::nextFrame(); |
| 1806 | − _myAvatar.getHand().setLeapFingers(LeapManager::getFingerPositions()); | |
| 1813 | + _myAvatar.getHand().setLeapFingers(LeapManager::getFingerTips(), LeapManager::getFingerRoots()); | |
| 1814 | + _myAvatar.getHand().setLeapHands(LeapManager::getHandPositions(), LeapManager::getHandNormals()); | |
| 1807 | 1815 | |
| 1808 | 1816 | // Read serial port interface devices |
| 1809 | 1817 | if (_serialHeadSensor.isActive()) { |