OVR_EXPORT ovrBool ovrHmd_SetFloat(ovrHmd hmd, const char* propertyName, float value) { HMDState* hmds = (HMDState*)hmd; if (hmds) { return hmds->setFloatValue(propertyName, value); } return false; }
OVR_EXPORT ovrBool ovrHmd_SetFloat(ovrHmd hmddesc, const char* propertyName, float value) { OVR_ASSERT(hmddesc && propertyName); HMDState* hmds = (HMDState*)hmddesc->Handle; if (hmds) { return hmds->setFloatValue(propertyName, value); } return false; }
OVR_EXPORT ovrBool ovrHmd_SetFloat(ovrHmd hmddesc, const char* propertyName, float value) { OVR_ASSERT(propertyName); if (hmddesc) { HMDState* hmds = (HMDState*)hmddesc->Handle; OVR_ASSERT(hmds); if (hmds) { return hmds->setFloatValue(propertyName, value) ? 1 : 0; } } return NetClient::GetInstance()->SetNumberValue(InvalidVirtualHmdId, propertyName, value) ? 1 : 0; }