public long initCamera(boolean allowed) {
        hmdErrorStore.put(0, VR.EVRInitError_VRInitError_None); // clear the error store
        if( allowed) {
            long result = VR.VR_GetGenericInterface(VR.IVRTrackedCamera_Version, hmdErrorStore);
            if (result > 0){
                if(hmdErrorStore.get(0) == VR.EVRInitError_VRInitError_None ){
                    logger.config("OpenVR Camera initialized");
                }
                return result;
            } else {
              logger.severe("Failed to initialize camera");
            }
        }
        return 0;
    }
Initialize the headset camera.
@param allowed <code>true</code> is the use of the headset camera is allowed and <code>false</code> otherwise.
@return token for camera
jme3-vr/src/main/java/com/jme3/input/vr/lwjgl_openvr/LWJGLOpenVR.java