Yep! Easy enough.On it.

Date: Wed, 26 Jun 2013 15:47:35 -0700
From: notifications@github.com
To: hifi@noreply.github.com
CC: ej@machinelevel.com
Subject: Re: [hifi] Added support for the Leap finger sensor. The Leap dev materials cannot ... (#582)

In interface/src/Application.h:

> @@ -291,6 +295,11 @@ class Application : public QApplication {
>      float _touchDragStartedAvgY;
>      bool _isTouchPressed; //  true if multitouch has been pressed (clear when finished)
>      
> +    bool _leapIsInitialized;            // We've looked for the library and hooked it up if it's there.
> +    bool _leapLibraryExists;            // The library is present, so we won't crash if we call it.
> +    Leap::Controller* _leapController;
> +    HifiLeapListener* _leapListener;

ideally I think we should have this stuff accessible statically in a separate class, like a LeapManager (similar to the way the OculusManager works) - to avoid cluttering up the Application class


—
Reply to this email directly or view it on GitHub.