mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-08-26 13:51:49 +00:00
Stop uncontrollable camera rotating when raw mouse input is on
This commit is contained in:
parent
76b7df393a
commit
f7e51e2c20
@ -599,9 +599,13 @@ void IN_ResetMouse( void )
|
|||||||
// no work to do in SDL
|
// no work to do in SDL
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// reset only if mouse is active and not in visible mode:
|
// reset only if mouse is active and not in visible mode:
|
||||||
if(mouseactive && !iVisibleMouse)
|
if(mouseactive && !iVisibleMouse && gEngfuncs.GetWindowCenterX && gEngfuncs.GetWindowCenterY)
|
||||||
{
|
{
|
||||||
if ( !m_bRawInput && gEngfuncs.GetWindowCenterX && gEngfuncs.GetWindowCenterY )
|
if ( !m_bMouseThread && m_bRawInput )
|
||||||
|
{
|
||||||
|
SetCursorPos ( gEngfuncs.GetWindowCenterX(), gEngfuncs.GetWindowCenterY() );
|
||||||
|
}
|
||||||
|
else if ( !m_bRawInput )
|
||||||
{
|
{
|
||||||
bool lockEntered = MouseThread_ActiveLock_Enter();
|
bool lockEntered = MouseThread_ActiveLock_Enter();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user