game/client: fix messagemode, add acceleration for touch, GameUI: add touch options

This commit is contained in:
nillerusr
2022-04-16 12:58:59 +03:00
parent 0feeab91dd
commit ab5c1c0b3a
12 changed files with 505 additions and 76 deletions

View File

@@ -947,7 +947,8 @@ void CInput::ControllerMove( float frametime, CUserCmd *cmd )
}
JoyStickMove( frametime, cmd);
gTouch.Move( frametime, cmd );
TouchMove( cmd );
// NVNT if we have a haptic device..
if(haptics && haptics->HasDevice())
@@ -1194,9 +1195,9 @@ void CInput::CreateMove ( int sequence_number, float input_sample_frametime, boo
// Using joystick?
#ifdef SIXENSE
if ( in_joystick.GetInt() || g_pSixenseInput->IsEnabled() )
if ( in_joystick.GetInt() || g_pSixenseInput->IsEnabled() || touch_enable.GetInt() )
#else
if ( in_joystick.GetInt() )
if ( in_joystick.GetInt() || touch_enable.GetInt() )
#endif
{
if ( cmd->forwardmove > 0 )