genekogan / ofxLeapMotion2

A wrapper for the Leap Motion SDK compatible with Leap 2.0 Beta with skeletal tracking
MIT License
61 stars 33 forks source link

Optimization for Head-mounted Display #5

Open anilcamci opened 9 years ago

anilcamci commented 9 years ago

I am trying to get ofxLeapMotion2 to work with Oculus RIft. The optimization is implemented in the Leap library. I added the below function to set the relevant policy flag:

void optimizeForHeadMountedDisplay() {
    if (ourController) {
        ourController->setPolicyFlags(Leap::Controller::POLICY_OPTIMIZE_HMD);
        cout << ourController->policyFlags() << endl;
    }
}

The policy flag indeed gets set but the behavior doesn't change (i.e. Leap still continues function in desktop mode).

Any ideas as to what might be causing this?