Skip to content

Commit

Permalink
Speculative support for Quest 3S
Browse files Browse the repository at this point in the history
  • Loading branch information
amwatson committed Oct 5, 2024
1 parent 95bef7b commit 6bbf908
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/android/app/src/main/jni/vr/vr_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ uint32_t GetDefaultGameResolutionFactorForHmd(const VRSettings::HMDType& hmdType
kDefaultResolutionFactor);
case VRSettings::HMDType::QUEST2:
case VRSettings::HMDType::QUESTPRO:
case VRSettings::HMDType::QUEST3S:
return kDefaultResolutionFactor;
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/android/app/src/main/jni/vr/vr_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ HMDType HmdTypeFromStr(const std::string& hmdType) {
return HMDType::QUEST3;
} else if (hmdType == "Quest Pro") {
return HMDType::QUESTPRO;
} else if (hmdType == "Quest 3S" || hmdType == "Quest 3s" || hmdType == "Panther") {
return HMDType::QUEST3S;
}
return HMDType::UNKNOWN;
}
Expand Down
2 changes: 1 addition & 1 deletion src/android/app/src/main/jni/vr/vr_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ License : Licensed under GPLv3 or any later version.
namespace VRSettings {

// NOTE: keep this in-sync with HMDType in sync with VRUtils.java
enum class HMDType { UNKNOWN = 0, QUEST1, QUEST2, QUEST3, QUESTPRO };
enum class HMDType { UNKNOWN = 0, QUEST1, QUEST2, QUEST3, QUESTPRO, QUEST3S };

enum class VREnvironmentType { PASSTHROUGH = 1, VOID = 2 };

Expand Down

0 comments on commit 6bbf908

Please sign in to comment.