We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14ef214 commit 0e56552Copy full SHA for 0e56552
src/xrGame/GamePersistent.cpp
@@ -31,6 +31,7 @@
31
#include "UI/UIGameTutorial.h"
32
#include "xrEngine/GameFont.h"
33
#include "xrEngine/PerformanceAlert.hpp"
34
+#include "xrEngine/xr_input.h"
35
36
#ifndef MASTER_GOLD
37
# include "custommonster.h"
@@ -771,6 +772,7 @@ void CGamePersistent::OnAppActivate ()
771
772
}
773
774
bEntryFlag = TRUE;
775
+ pInput->ClipCursor(!GetUICursor().IsVisible());
776
777
778
void CGamePersistent::OnAppDeactivate ()
@@ -780,7 +782,7 @@ void CGamePersistent::OnAppDeactivate ()
780
782
bool bIsMP = (g_pGameLevel && Level().game && GameID() != eGameIDSingle);
781
783
784
bRestorePause = FALSE;
-
785
+
786
if ( !bIsMP )
787
{
788
bRestorePause = Device.Paused();
0 commit comments