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 | // Close serial port | 953 | // Close serial port |
| 954 | // close(serial_fd); | 954 | // close(serial_fd); |
| 955 | 955 | ||
| 956 | LeapManager::terminate(); | ||
| 957 | |||
| 956 | if (_settingsAutosave->isChecked()) { | 958 | if (_settingsAutosave->isChecked()) { |
| 957 | saveSettings(); | 959 | saveSettings(); |
| 958 | _settings->sync(); | 960 | _settings->sync(); |
| @@ -1645,6 +1647,8 @@ void Application::init() { · 686 unmodified lines | |||
| 1645 | QMetaObject::invokeMethod(_fullScreenMode, "trigger", Qt::QueuedConnection); | 1647 | QMetaObject::invokeMethod(_fullScreenMode, "trigger", Qt::QueuedConnection); |
| 1646 | } | 1648 | } |
| 1647 | 1649 | ||
| 1650 | LeapManager::initialize(); | ||
| 1651 | |||
| 1648 | gettimeofday(&_timerStart, NULL); | 1652 | gettimeofday(&_timerStart, NULL); |
| 1649 | gettimeofday(&_lastTimeIdle, NULL); | 1653 | gettimeofday(&_lastTimeIdle, NULL); |
| 1650 | 1654 | ||
| @@ -1803,7 +1807,8 @@ void Application::update(float deltaTime) { · 152 unmodified lines | |||
| 1803 | 1807 | ||
| 1804 | // Leap finger-sensing device | 1808 | // Leap finger-sensing device |
| 1805 | LeapManager::nextFrame(); | 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 | // Read serial port interface devices | 1813 | // Read serial port interface devices |
| 1809 | if (_serialHeadSensor.isActive()) { | 1814 | if (_serialHeadSensor.isActive()) { |