mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
Merge branch 'master' of https://github.com/worklist/hifi
This commit is contained in:
commit
c309774e3c
2 changed files with 9 additions and 0 deletions
|
@ -944,6 +944,11 @@ void Application::idle() {
|
|||
// Only run simulation code if more than IDLE_SIMULATE_MSECS have passed since last time we ran
|
||||
|
||||
if (diffclock(&_lastTimeIdle, &check) > IDLE_SIMULATE_MSECS) {
|
||||
// We call processEvents() here because the idle timer takes priority over
|
||||
// event handling in Qt, so when the framerate gets low events will pile up
|
||||
// unless we handle them here.
|
||||
processEvents();
|
||||
|
||||
update(1.0f / _fps);
|
||||
|
||||
_glWidget->updateGL();
|
||||
|
|
|
@ -17,6 +17,10 @@ HifiLeapListener* LeapManager::_listener = NULL;
|
|||
|
||||
class HifiLeapListener : public Leap::Listener {
|
||||
public:
|
||||
HifiLeapListener() {
|
||||
}
|
||||
virtual ~HifiLeapListener() {
|
||||
}
|
||||
Leap::Frame lastFrame;
|
||||
std::vector<glm::vec3> fingerTips;
|
||||
std::vector<glm::vec3> fingerRoots;
|
||||
|
|
Loading…
Reference in a new issue