// Returns array size of a property, 0 if property doesn't exist. // Can be used to check existence of a property. OVR_EXPORT unsigned int ovrHmd_GetArraySize(ovrHmd hmd, const char* propertyName) { HMDState* hmds = (HMDState*)hmd; if (hmds && hmds->pHMD) { // For now, just access the profile. Profile* p = hmds->pHMD->GetProfile(); if (p) return p->GetNumValues(propertyName); } return 0; }