OpenXR - Support camera adjust using joystick

This commit is contained in:
Lubos committed 2022-11-17 10:22:01 +01:00
1 parent 3e481634ac
commit 0ae1d75daf
3 files changed
+24 -12

No files matched your search

+7 -2
View File
@@ -1306,8 +1306,8 @@ bool NativeTouch(const TouchInput &touch) {
}
bool NativeKey(const KeyInput &key) {
// Special key VR actions
if (IsVREnabled() && !UpdateVRSpecialKeys(key)) {
// VR actions
if (IsVREnabled() && !UpdateVRKeys(key)) {
return false;
}
@@ -1331,6 +1331,11 @@ bool NativeKey(const KeyInput &key) {
}
bool NativeAxis(const AxisInput &axis) {
// VR actions
if (IsVREnabled() && !UpdateVRAxis(axis)) {
return false;
}
if (!screenManager) {
// Too early.
return false;