Skip to content

Commit

Permalink
Remove unimplemented fallback behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
vilhalmer committed Nov 19, 2024
1 parent b83a669 commit af019a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/open_vr/openvr_overlay_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
10 changes: 0 additions & 10 deletions src/open_vr/openvr_overlay_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -29,8 +21,6 @@ class OpenVROverlayContainer : public SubViewportContainer {
HashSet<vr::VROverlayFlags> 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 != ""

Expand Down

0 comments on commit af019a6

Please sign in to comment.