2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-23 17:25:24 +01:00

input: improve touch emulation

This commit is contained in:
mittorn 2019-09-28 19:33:57 +07:00
parent faf592adb4
commit 7770b1a82b

View File

@ -362,7 +362,12 @@ void IN_MouseEvent( void )
// touch emu: handle motion
if( CVAR_TO_BOOL( touch_emulate ))
Touch_KeyEvent( K_MOUSE1, 2 );
{
if( Key_IsDown( K_SHIFT ) )
Touch_KeyEvent( K_MOUSE2, 2 );
else
Touch_KeyEvent( K_MOUSE1, 2 );
}
if( !in_mouseinitialized || !in_mouseactive )
return;