Skip to content

Commit

Permalink
Allow getCursorPosition if console or chat input is open (PR #3010, F…
Browse files Browse the repository at this point in the history
…ixes #1166)
  • Loading branch information
CrosRoad95 committed Jul 26, 2023
1 parent 48c8209 commit d460d93
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -4973,7 +4973,7 @@ bool CStaticFunctionDefinitions::FadeCamera(bool bFadeIn, float fFadeTime, unsig

bool CStaticFunctionDefinitions::GetCursorPosition(CVector2D& vecCursor, CVector& vecWorld)
{
if (m_pClientGame->AreCursorEventsEnabled() || GUIGetInputEnabled())
if (m_pClientGame->AreCursorEventsEnabled() || GUIGetInputEnabled() || g_pCore->GetConsole()->IsVisible() || g_pCore->IsChatInputEnabled())
{
tagPOINT point;
GetCursorPos(&point);
Expand Down

0 comments on commit d460d93

Please sign in to comment.