Browse Source

input: improve touch emulation

pull/2/head
mittorn 5 years ago
parent
commit
7770b1a82b
  1. 7
      engine/client/input.c

7
engine/client/input.c

@ -362,7 +362,12 @@ void IN_MouseEvent( void ) @@ -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;

Loading…
Cancel
Save