mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-19 08:19:48 +08:00
37 lines
816 B
C#
37 lines
816 B
C#
using BetterGenshinImpact.Core.Simulator;
|
|
using BetterGenshinImpact.Core.Simulator.Extensions;
|
|
using BetterGenshinImpact.Model;
|
|
using System;
|
|
using Vanara.PInvoke;
|
|
|
|
namespace BetterGenshinImpact.GameTask.AutoTrackPath;
|
|
|
|
[Obsolete]
|
|
public class MovementControl : Singleton<MovementControl>
|
|
{
|
|
private bool _wDown = false;
|
|
|
|
public void WDown()
|
|
{
|
|
if (!_wDown)
|
|
{
|
|
_wDown = true;
|
|
Simulation.SendInput.SimulateAction(GIActions.MoveForward, KeyType.KeyDown);
|
|
}
|
|
}
|
|
|
|
public void WUp()
|
|
{
|
|
if (_wDown)
|
|
{
|
|
_wDown = false;
|
|
Simulation.SendInput.SimulateAction(GIActions.MoveForward, KeyType.KeyUp);
|
|
}
|
|
}
|
|
|
|
public void SpacePress()
|
|
{
|
|
Simulation.SendInput.SimulateAction(GIActions.Jump);
|
|
}
|
|
}
|