mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-13 16:37:57 +00:00
Track m_rawinput changes when weapon prediction is disabled
This commit is contained in:
parent
63e3769c46
commit
06424ce6fa
@ -158,7 +158,6 @@ bool isMouseRelative = false;
|
||||
|
||||
#if _WIN32
|
||||
#include "progdefs.h"
|
||||
extern globalvars_t *gpGlobals;
|
||||
#endif
|
||||
|
||||
int CL_IsDead( void );
|
||||
@ -781,9 +780,10 @@ void GoldSourceInput::IN_GetMouseDelta( int *pOutX, int *pOutY)
|
||||
|
||||
#if _WIN32
|
||||
// update m_bRawInput occasionally:
|
||||
if ( gpGlobals && gpGlobals->time - s_flRawInputUpdateTime > 1.0f )
|
||||
const float currentTime = gEngfuncs.GetClientTime();
|
||||
if ( currentTime - s_flRawInputUpdateTime > 1.0f || s_flRawInputUpdateTime == 0.0f )
|
||||
{
|
||||
s_flRawInputUpdateTime = gpGlobals->time;
|
||||
s_flRawInputUpdateTime = currentTime;
|
||||
|
||||
bool lockEntered = MouseThread_ActiveLock_Enter();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user