engine: client: fix inconsistent mouse state caused by mis-use of touch_emulate by cs16-client

This commit is contained in:
Alibek Omarov
2025-02-23 07:13:39 +03:00
parent 8b9a40ff1f
commit ccf342f4fe
4 changed files with 13 additions and 23 deletions
+2 -2
View File
@@ -332,7 +332,7 @@ static void IN_MouseMove( void )
if( !in_mouseinitialized )
return;
if( Touch_Emulated( ))
if( Touch_WantVisibleCursor( ))
{
// touch emulation overrides all input
Touch_KeyEvent( 0, 0 );
@@ -363,7 +363,7 @@ void IN_MouseEvent( int key, int down )
else ClearBits( in_mstate, BIT( key ));
// touch emulation overrides all input
if( Touch_Emulated( ))
if( Touch_WantVisibleCursor( ))
{
Touch_KeyEvent( K_MOUSE1 + key, down );
}