mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-09-14 15:12:39 +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
|
#if _WIN32
|
||||||
#include "progdefs.h"
|
#include "progdefs.h"
|
||||||
extern globalvars_t *gpGlobals;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int CL_IsDead( void );
|
int CL_IsDead( void );
|
||||||
@ -781,9 +780,10 @@ void GoldSourceInput::IN_GetMouseDelta( int *pOutX, int *pOutY)
|
|||||||
|
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
// update m_bRawInput occasionally:
|
// 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();
|
bool lockEntered = MouseThread_ActiveLock_Enter();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user