Move Win32 VR state behind platform services
This commit is contained in:
@@ -20,10 +20,6 @@
|
||||
#include <deque>
|
||||
#include <map>
|
||||
|
||||
namespace pp::platform::windows {
|
||||
[[nodiscard]] VrShellState& platform_vr_state() noexcept;
|
||||
}
|
||||
|
||||
void destroy_window();
|
||||
void async_lock();
|
||||
void async_unlock();
|
||||
@@ -134,7 +130,8 @@ void initialize_retained_input_state()
|
||||
|
||||
VrShellState& platform_vr_state() noexcept
|
||||
{
|
||||
return retained_vr_shell_state();
|
||||
static VrShellState state;
|
||||
return state;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user