diff options
author | Bastiaan Olij <mux213@gmail.com> | 2023-03-13 12:26:10 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2023-03-15 13:11:48 +1100 |
commit | e31c2e42774f0b56608662f239a32f7734513a99 (patch) | |
tree | 78b91f39cd216580746724b5ffdb7751d0ea1074 /modules/mobile_vr/mobile_vr_interface.cpp | |
parent | 550a7798510810d238b733a54f69da71b2a2d152 (diff) | |
download | redot-engine-e31c2e42774f0b56608662f239a32f7734513a99.tar.gz |
Add a get_system_info method to XRInterface
Diffstat (limited to 'modules/mobile_vr/mobile_vr_interface.cpp')
-rw-r--r-- | modules/mobile_vr/mobile_vr_interface.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/mobile_vr/mobile_vr_interface.cpp b/modules/mobile_vr/mobile_vr_interface.cpp index 5fab53441c..94a3f0777e 100644 --- a/modules/mobile_vr/mobile_vr_interface.cpp +++ b/modules/mobile_vr/mobile_vr_interface.cpp @@ -372,6 +372,15 @@ void MobileVRInterface::uninitialize() { }; }; +Dictionary MobileVRInterface::get_system_info() { + Dictionary dict; + + dict[SNAME("XRRuntimeName")] = String("Godot mobile VR interface"); + dict[SNAME("XRRuntimeVersion")] = String(""); + + return dict; +} + bool MobileVRInterface::supports_play_area_mode(XRInterface::PlayAreaMode p_mode) { // This interface has no positional tracking so fix this to 3DOF return p_mode == XR_PLAY_AREA_3DOF; |