From af019a660288c8b2d8596f4f28da81c89b419a4b Mon Sep 17 00:00:00 2001 From: Bill Doyle Date: Tue, 19 Nov 2024 10:03:36 -0500 Subject: [PATCH] Remove unimplemented fallback behavior --- src/open_vr/openvr_overlay_container.cpp | 1 - src/open_vr/openvr_overlay_container.h | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/src/open_vr/openvr_overlay_container.cpp b/src/open_vr/openvr_overlay_container.cpp index ae50a21..3ed98ca 100644 --- a/src/open_vr/openvr_overlay_container.cpp +++ b/src/open_vr/openvr_overlay_container.cpp @@ -67,7 +67,6 @@ OpenVROverlayContainer::OpenVROverlayContainer() { overlay_width_in_meters = 1.0; overlay_visible = true; tracked_device_name = ""; - fallback_behavior = OpenVROverlayContainer::TrackedDeviceFallbackBehavior::Absolute; overlay = 0; } diff --git a/src/open_vr/openvr_overlay_container.h b/src/open_vr/openvr_overlay_container.h index 754ae8a..893fc9b 100644 --- a/src/open_vr/openvr_overlay_container.h +++ b/src/open_vr/openvr_overlay_container.h @@ -11,14 +11,6 @@ namespace godot { class OpenVROverlayContainer : public SubViewportContainer { GDCLASS(OpenVROverlayContainer, SubViewportContainer) -public: - // If tracked_device is set and the requested device is not available, the - // fallback behavior decides what happens to the overlay. - enum TrackedDeviceFallbackBehavior { - Absolute, // Revert to absolute transform (positioned in the world) - Hide // Hide the overlay - }; - private: openvr_data *ovr; vr::VROverlayHandle_t overlay; @@ -29,8 +21,6 @@ class OpenVROverlayContainer : public SubViewportContainer { HashSet initial_flags; String tracked_device_name; - TrackedDeviceFallbackBehavior fallback_behavior; - Transform3D absolute_position; // Used when tracked_device == "" Transform3D tracked_device_relative_position; // Used when tracked_device != ""