From eaad77edff6f6d60c30cd298432299ae0e61f7ed Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Tue, 4 Jun 2024 12:54:57 +0200 Subject: [PATCH] add IsAMetaQuestDevice() and IsAHtcViveDevice() methods --- .../Public/SGTracking/SGHMDTracker.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/SenseGloveTracking/Public/SGTracking/SGHMDTracker.h b/Source/SenseGloveTracking/Public/SGTracking/SGHMDTracker.h index 6a5a9ce0..bd88fef6 100644 --- a/Source/SenseGloveTracking/Public/SGTracking/SGHMDTracker.h +++ b/Source/SenseGloveTracking/Public/SGTracking/SGHMDTracker.h @@ -69,6 +69,11 @@ public: */ static bool IsMetaQuest3(); + FORCEINLINE static bool IsAMetaQuestDevice() + { + return IsMetaQuest2() || IsMetaQuestPro() || IsMetaQuest3(); + } + /** * Checks whether the HMD device is HTC VIVE Pro, or not. */ @@ -90,5 +95,10 @@ public: */ static bool IsHtcViveXRElite(); + FORCEINLINE static bool IsAHtcViveDevice() + { + return IsHtcVivePro() || IsHtcViveFocus3() || IsHtcViveXRElite(); + } + static ESGHeadMountedDisplayDevice GetDeviceType(); }; \ No newline at end of file