From 97d63a321cd3730c8ab16db81e6a3fb310f282cf Mon Sep 17 00:00:00 2001 From: Lubos Date: Thu, 10 Nov 2022 21:30:15 +0100 Subject: [PATCH] OpenXR - Test mirroring over 30 various games --- Common/VR/PPSSPPVR.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Common/VR/PPSSPPVR.cpp b/Common/VR/PPSSPPVR.cpp index 92a187d390..92e00f898a 100644 --- a/Common/VR/PPSSPPVR.cpp +++ b/Common/VR/PPSSPPVR.cpp @@ -661,7 +661,7 @@ void UpdateVRParams(float* projMatrix, float* viewMatrix) { vrMirroring[VR_MIRRORING_AXIS_Z] = projMatrix[10] > 0; float up = 0; - for (int i = 4; i < 8; i++) { + for (int i = 4; i < 7; i++) { up += viewMatrix[i]; } @@ -671,30 +671,30 @@ void UpdateVRParams(float* projMatrix, float* viewMatrix) { variant += (up < 0) << 3; switch (variant) { - case 0: - case 1: + case 0: //e.g. ATV + case 1: //untested vrMirroring[VR_MIRRORING_PITCH] = false; vrMirroring[VR_MIRRORING_YAW] = true; vrMirroring[VR_MIRRORING_ROLL] = true; break; - case 2: - case 3: - case 5: - case 7: - case 8: - case 9: - case 10: - case 11: - case 13: - case 15: + case 2: //e.g.PES 2014 + case 3: //untested + case 5: //e.g Dante's Inferno + case 7: //untested + case 8: //untested + case 9: //untested + case 10: //untested + case 11: //untested + case 13: //untested + case 15: //untested vrMirroring[VR_MIRRORING_PITCH] = true; vrMirroring[VR_MIRRORING_YAW] = true; vrMirroring[VR_MIRRORING_ROLL] = false; break; - case 4: - case 6: - case 12: - case 14: + case 4: //e.g. Assassins Creed + case 6: //e.g. Ghost in the shell + case 12: //e.g. GTA Vice City + case 14: //untested vrMirroring[VR_MIRRORING_PITCH] = true; vrMirroring[VR_MIRRORING_YAW] = false; vrMirroring[VR_MIRRORING_ROLL] = true;