refactor menu_toggle

This commit is contained in:
galister
2026-10-27 22:08:23 +01:00
committed by xytovl
parent 1f8e5afcf0
commit f91b68491d
2 changed files with 16 additions and 31 deletions
+1 -2
View File
@@ -103,6 +103,7 @@ private:
// Read actions a and b and determine if they were activated together clicks_needed times in a row
bool check(XrTime now);
};
chord_state menu_chord = {};
chord_state gamepad_chord = {.clicks_needed = 2};
bool using_frame_gamepad() const
@@ -203,8 +204,6 @@ private:
thread_safe<std::queue<std::string>> stream_error_queue;
XrAction plots_toggle_1 = XR_NULL_HANDLE;
XrAction plots_toggle_2 = XR_NULL_HANDLE;
XrAction recenter_left = XR_NULL_HANDLE;
XrAction recenter_right = XR_NULL_HANDLE;
XrAction gui_distance_left = XR_NULL_HANDLE;