private void OnMouseHold(Vector3 pos) { if (!controls_enabled) { return; } if (TheGame.IsMobile()) { return; //On mobile, use joystick instead, no mouse hold } //Stop auto target if holding PlayerControlsMouse mcontrols = PlayerControlsMouse.Get(); if (auto_move && mcontrols.GetMouseHoldDuration() > 1f) { StopAutoMove(); } //Only hold for normal movement, if interacting dont change while holding if (character_craft.GetCurrentBuildable() == null && auto_move_select == null && auto_move_attack == null) { UpdateMoveTo(pos); } }