Skip to content

Commit

Permalink
OpenXR - Test mirroring over 30 various games
Browse files Browse the repository at this point in the history
  • Loading branch information
lvonasek committed Nov 10, 2022
1 parent d32b6ce commit 97d63a3
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Common/VR/PPSSPPVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand All @@ -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;
Expand Down

0 comments on commit 97d63a3

Please sign in to comment.