mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:43:08 +02:00
Note that the actual Leap SDK can't be in the repo for IP reasons, so there's a stub-version of the header. When the actual SDK is put into the Leap folder, cake will find it automatically and switch over.
39 lines
927 B
C++
Executable file
39 lines
927 B
C++
Executable file
//
|
|
// LeapManager.h
|
|
// hifi
|
|
//
|
|
// Created by Eric Johnston on 6/26/13.
|
|
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef __hifi__LeapManager__
|
|
#define __hifi__LeapManager__
|
|
|
|
#include <vector>
|
|
#include <glm/glm.hpp>
|
|
#include <string>
|
|
|
|
class HifiLeapListener;
|
|
namespace Leap {
|
|
class Controller;
|
|
}
|
|
|
|
class LeapManager {
|
|
public:
|
|
static void nextFrame(); // called once per frame to get new Leap data
|
|
static const std::vector<glm::vec3>& getFingerPositions();
|
|
static std::string statusString();
|
|
|
|
private:
|
|
static void initialize();
|
|
static bool _isInitialized; // We've looked for the library and hooked it up if it's there.
|
|
static bool _libraryExists; // The library is present, so we won't crash if we call it.
|
|
static Leap::Controller* _controller;
|
|
static HifiLeapListener* _listener;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif /* defined(__hifi__LeapManager__) */
|