OpenXR - VR camera features on any platform

This commit is contained in:
Lubos committed 2024-08-07 09:25:12 +02:00
1 parent c4076e359d
commit 3154a5fac1
8 files changed
+59 -34

No files matched your search

+2 -2
View File
@@ -1322,7 +1322,7 @@ bool NativeKey(const KeyInput &key) {
double now = time_now_d();
// VR actions
if (IsVREnabled() && !UpdateVRKeys(key)) {
if ((IsVREnabled() || g_Config.bForceVR) && !UpdateVRKeys(key)) {
return false;
}
@@ -1372,7 +1372,7 @@ bool NativeKey(const KeyInput &key) {
void NativeAxis(const AxisInput *axes, size_t count) {
// VR actions
if (IsVREnabled() && !UpdateVRAxis(axes, count)) {
if ((IsVREnabled() || g_Config.bForceVR) && !UpdateVRAxis(axes, count)) {
return;
}