add IsAMetaQuestDevice() and IsAHtcViveDevice() methods
This commit is contained in:
@@ -69,6 +69,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
static bool IsMetaQuest3();
|
static bool IsMetaQuest3();
|
||||||
|
|
||||||
|
FORCEINLINE static bool IsAMetaQuestDevice()
|
||||||
|
{
|
||||||
|
return IsMetaQuest2() || IsMetaQuestPro() || IsMetaQuest3();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the HMD device is HTC VIVE Pro, or not.
|
* Checks whether the HMD device is HTC VIVE Pro, or not.
|
||||||
*/
|
*/
|
||||||
@@ -90,5 +95,10 @@ public:
|
|||||||
*/
|
*/
|
||||||
static bool IsHtcViveXRElite();
|
static bool IsHtcViveXRElite();
|
||||||
|
|
||||||
|
FORCEINLINE static bool IsAHtcViveDevice()
|
||||||
|
{
|
||||||
|
return IsHtcVivePro() || IsHtcViveFocus3() || IsHtcViveXRElite();
|
||||||
|
}
|
||||||
|
|
||||||
static ESGHeadMountedDisplayDevice GetDeviceType();
|
static ESGHeadMountedDisplayDevice GetDeviceType();
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user