Showing the changes to interface/src/Application.cpp (1 of 8 files). Show all
Unified · Split
| @@ -953,6 +953,8 @@ void Application::terminate() { · 952 unmodified lines | ||
| 953 | 953 | // Close serial port |
| 954 | 954 | // close(serial_fd); |
| 955 | 955 | |
| 956 | + LeapManager::terminate(); | |
| 957 | + | |
| 956 | 958 | if (_settingsAutosave->isChecked()) { |
| 957 | 959 | saveSettings(); |
| 958 | 960 | _settings->sync(); |
| @@ -1645,6 +1647,8 @@ void Application::init() { · 686 unmodified lines | ||
| 1645 | 1647 | QMetaObject::invokeMethod(_fullScreenMode, "trigger", Qt::QueuedConnection); |
| 1646 | 1648 | } |
| 1647 | 1649 | |
| 1650 | + LeapManager::initialize(); | |
| 1651 | + | |
| 1648 | 1652 | gettimeofday(&_timerStart, NULL); |
| 1649 | 1653 | gettimeofday(&_lastTimeIdle, NULL); |
| 1650 | 1654 | |
| @@ -1803,7 +1807,8 @@ void Application::update(float deltaTime) { · 152 unmodified lines | ||
| 1803 | 1807 | |
| 1804 | 1808 | // Leap finger-sensing device |
| 1805 | 1809 | LeapManager::nextFrame(); |
| 1806 | − _myAvatar.getHand().setLeapFingers(LeapManager::getFingerPositions()); | |
| 1810 | + _myAvatar.getHand().setLeapFingers(LeapManager::getFingerTips(), LeapManager::getFingerRoots()); | |
| 1811 | + _myAvatar.getHand().setLeapHands(LeapManager::getHandPositions(), LeapManager::getHandNormals()); | |
| 1807 | 1812 | |
| 1808 | 1813 | // Read serial port interface devices |
| 1809 | 1814 | if (_serialHeadSensor.isActive()) { |