Closed WIL993 closed 9 years ago
The LeapMotion API you're looking for would be Controller.policyFlags() and Controller.setPolicyFlags(Controller.PolicyFlags).
I'm not certain the best place to make this call, perhaps in onConnect
in your sketch
void onConnect(final Controller controller)
{
controller.setPolicyFlags(Controller.PolicyFlag.POLICY_OPTIMIZE_HMD);
}
I tried using the above code in a previous version of your library before the weekend however got the error: Could not find anything named "Controller.PolicyFlag.POLICY_OPTIMIZE_HMD".
(however the BACKGROUND FRAMES policy did work)
I will try again now because it is very possible with the update you have made to the recent SDK version that this feature may well be accessible.
Hi, I have just tested using latest library version with latest SDK and still have the same issue, error of: Could not find anything named "Controller.PolicyFlag.POLICY_OPTIMIZE_HMD"
Hmm, thanks. I added a new example here
and cut a new version 1.20 release. The example should work with version 1.20.
Thanks, I deleted the library to reinstall and am now having issues with "Error in contribution file on line 1" when opening library manager so cannot re-add the library, will report back when I get this resolved!
Can't say I know what that means. I'll send you a direct download link via email.
Thank you very much for your help, this is now working for me!
Great, thanks!
Hi, Sorry this was the only way I could see of contacting you! I am working with your library, which is fantastic, one feature I would really like though and which I cannot access is the optimize HMD policy flag. To help with top down detection. If you could add this or point me in the direction of enabling it that would be amazing! Thanks, Will will.vivid.vibe@gmail.com