// // 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 #include #include 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& getFingerTips(); static const std::vector& getFingerRoots(); static const std::vector& getHandPositions(); static const std::vector& getHandNormals(); static std::string statusString(); static void initialize(); static void terminate(); private: 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__) */