mirror of https://github.com/bjornbytes/lovr.git
Interaction profiles suggestion improvement
At least one profile should be supported. Monado fails on Neo 3 profile.
This commit is contained in:
parent
3f20364c3f
commit
13d8c4a207
|
@ -833,15 +833,18 @@ static bool openxr_init(HeadsetConfig* config) {
|
|||
suggestedBindings[j].binding = path;
|
||||
}
|
||||
|
||||
int successProfiles = 0;
|
||||
if (count > 0) {
|
||||
XR_INIT(xrStringToPath(state.instance, interactionProfilePaths[i], &path));
|
||||
XR_INIT(xrSuggestInteractionProfileBindings(state.instance, &(XrInteractionProfileSuggestedBinding) {
|
||||
int res = (xrSuggestInteractionProfileBindings(state.instance, &(XrInteractionProfileSuggestedBinding) {
|
||||
.type = XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING,
|
||||
.interactionProfile = path,
|
||||
.countSuggestedBindings = count,
|
||||
.suggestedBindings = suggestedBindings
|
||||
}));
|
||||
if (XR_SUCCEEDED(res)) successProfiles++;
|
||||
}
|
||||
XR_INIT(successProfiles);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue