Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -1678,6 +1678,8 @@ void Application::initMenu() { · 1677 unmodified lines | ||
| 1678 | 1678 | (_renderCoverageMapV2 = debugMenu->addAction("Render Coverage Map V2"))->setCheckable(true); |
| 1679 | 1679 | _renderCoverageMapV2->setShortcut(Qt::SHIFT | Qt::CTRL | Qt::Key_P); |
| 1680 | 1680 | |
| 1681 | + (_simulateLeapHand = debugMenu->addAction("Simulate Leap Hand"))->setCheckable(true); | |
| 1682 | + (_testRaveGlove = debugMenu->addAction("Test RaveGlove"))->setCheckable(true); | |
| 1681 | 1683 | |
| 1682 | 1684 | QMenu* settingsMenu = menuBar->addMenu("Settings"); |
| 1683 | 1685 | (_settingsAutosave = settingsMenu->addAction("Autosave"))->setCheckable(true); |
| @@ -1936,6 +1938,7 @@ void Application::update(float deltaTime) { · 252 unmodified lines | ||
| 1936 | 1938 | } |
| 1937 | 1939 | |
| 1938 | 1940 | // Leap finger-sensing device |
| 1941 | + LeapManager::enableFakeFingers(_simulateLeapHand->isChecked() || _testRaveGlove->isChecked()); | |
| 1939 | 1942 | LeapManager::nextFrame(); |
| 1940 | 1943 | _myAvatar.getHand().setLeapFingers(LeapManager::getFingerTips(), LeapManager::getFingerRoots()); |
| 1941 | 1944 | _myAvatar.getHand().setLeapHands(LeapManager::getHandPositions(), LeapManager::getHandNormals()); |