Wait 3s when the session is not running before calling on_unfocused

This commit is contained in:
Guillaume Meunier
2025-10-23 21:39:12 +02:00
parent e584d9607f
commit 52be025d51
2 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -132,6 +132,8 @@ class application : public singleton<application>
bool session_running = false;
bool session_focused = false;
bool session_visible = false;
std::optional<std::chrono::steady_clock::time_point> timestamp_unsynchronized; // Timestamp when session_synchronized becomes false
bool debug_extensions_found = false;
std::vector<const char *> vk_device_extensions;
std::atomic<bool> exit_requested = false;
@@ -231,7 +233,7 @@ public:
{
return instance().actions;
}
static std::pair<XrAction, XrActionType> get_action(const std::string & name);
static std::pair<XrAction, XrActionType> get_action(std::string_view name);
static std::optional<std::pair<glm::vec3, glm::quat>> locate_controller(XrSpace space, XrSpace reference, XrTime time)
{