History

Merge remote-tracking branch 'origin/LeapMotion' into 19734

samcake committed 12 years ago

Commit a8b875d2 parents c7b1b50 3ce455a36 files · +8213 −-9Browse files

Showing the changes to interface/src/Application.cpp (1 of 36 files). Show all

Unified · Split

interface/src/Application.cpp+15−0
@@ -87,6 +87,8 @@ · 86 unmodified lines
8787 #include "ui/Stats.h"
8888 #include "ui/TextRenderer.h"
8989
90+#include "devices/Leapmotion.h"
91+
9092 using namespace std;
9193
9294 // Starfield information
@@ -1674,6 +1676,10 @@ void Application::init() { · 1581 unmodified lines
16741676 _faceplus.init();
16751677 _visage.init();
16761678
1679+ Leapmotion* leap = new Leapmotion();
1680+ int index = DeviceTracker::registerDevice( "Leapmotion", leap );
1681+ // _leapmotion.init();
1682+
16771683 // fire off an immediate domain-server check in now that settings are loaded
16781684 NodeList::getInstance()->sendDomainServerCheckIn();
16791685
@@ -2011,6 +2017,9 @@ void Application::update(float deltaTime) { · 331 unmodified lines
20112017
20122018 updateLOD();
20132019 updateMouseRay(); // check what's under the mouse and update the mouse voxel
2020+
2021+ DeviceTracker::updateAll();
2022+
20142023 updateFaceshift();
20152024 updateVisage();
20162025
@@ -2024,6 +2033,7 @@ void Application::update(float deltaTime) { · 7 unmodified lines
20242033 _sixenseManager.update(deltaTime);
20252034 _joystickManager.update();
20262035 _prioVR.update(deltaTime);
2036+
20272037 }
20282038
20292039 {
@@ -2031,6 +2041,10 @@ void Application::update(float deltaTime) { · 1 unmodified line
20312041 updateMyAvatar(deltaTime); // Sample hardware, update view frustum if needed, and send avatar data to mixer/nodes
20322042 }
20332043
2044+
2045+ // Dispatch input events
2046+ _controllerScriptingInterface.updateInputControllers();
2047+
20342048 updateThreads(deltaTime); // If running non-threaded, then give the threads some time to process...
20352049
20362050 {
@@ -3139,6 +3153,7 @@ void Application::resetSensors() { · 1102 unmodified lines
31393153 }
31403154
31413155 _prioVR.reset();
3156+ //_leapmotion.reset();
31423157
31433158 QCursor::setPos(_mouseX, _mouseY);
31443159 _myAvatar->reset();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t