This commit is contained in:
Henrik Rydgård committed 2022-11-06 14:37:56 +01:00
1 parent b4507cd5cc
commit c44afcf462
5 files changed
+26 -26

No files matched your search

+4 -4
View File
@@ -266,9 +266,9 @@ void IN_VRInit( engine_t *engine ) {
handPoseRightAction = CreateAction(runningActionSet, XR_ACTION_TYPE_POSE_INPUT, "hand_pose_right", NULL, 1, &rightHandPath);
XrPath interactionProfilePath = XR_NULL_PATH;
if (VR_GetPlatformFLag(VR_PLATFORM_CONTROLLER_QUEST)) {
if (VR_GetPlatformFlag(VR_PLATFORM_CONTROLLER_QUEST)) {
OXR(xrStringToPath(engine->appState.Instance, "/interaction_profiles/oculus/touch_controller", &interactionProfilePath));
} else if (VR_GetPlatformFLag(VR_PLATFORM_CONTROLLER_PICO)) {
} else if (VR_GetPlatformFlag(VR_PLATFORM_CONTROLLER_PICO)) {
OXR(xrStringToPath(engine->appState.Instance, "/interaction_profiles/pico/neo3_controller", &interactionProfilePath));
}
@@ -277,11 +277,11 @@ void IN_VRInit( engine_t *engine ) {
int currBinding = 0;
if (VR_GetPlatformFLag(VR_PLATFORM_CONTROLLER_QUEST)) {
if (VR_GetPlatformFlag(VR_PLATFORM_CONTROLLER_QUEST)) {
bindings[currBinding++] = ActionSuggestedBinding(indexLeftAction, "/user/hand/left/input/trigger");
bindings[currBinding++] = ActionSuggestedBinding(indexRightAction, "/user/hand/right/input/trigger");
bindings[currBinding++] = ActionSuggestedBinding(menuAction, "/user/hand/left/input/menu/click");
} else if (VR_GetPlatformFLag(VR_PLATFORM_CONTROLLER_PICO)) {
} else if (VR_GetPlatformFlag(VR_PLATFORM_CONTROLLER_PICO)) {
bindings[currBinding++] = ActionSuggestedBinding(indexLeftAction, "/user/hand/left/input/trigger/click");
bindings[currBinding++] = ActionSuggestedBinding(indexRightAction, "/user/hand/right/input/trigger/click");
bindings[currBinding++] = ActionSuggestedBinding(menuAction, "/user/hand/left/input/back/click");