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