Some GamepadUI fixes

This commit is contained in:
2024-04-13 20:16:45 +03:00
parent 19ce478dd0
commit 091308106b
18 changed files with 312 additions and 149 deletions

View File

@@ -1334,6 +1334,16 @@ void CHLClient::HudUpdate( bool bActive )
CRTime::UpdateRealTime();
#endif
#ifdef GAMEPADUI
if (IsGamepadUI())
{
if (!enginevgui->IsGameUIVisible())
{
engine->ExecuteClientCmd("gamepadui_resetfade");
}
}
#endif // GAMEPADUI
GetClientVoiceMgr()->Frame( frametime );
gHUD.UpdateHud( bActive );
@@ -1373,7 +1383,12 @@ void CHLClient::HudUpdate( bool bActive )
void CHLClient::HudReset( void )
{
gHUD.VidInit();
#ifdef GAMEPADUI
if (IsGamepadUI())
{
engine->ExecuteClientCmd("gamepadui_resetfade");
}
#endif // GAMEPADUI
PhysicsReset();
}