public async Task <IActionResult> TapAndCapture(string game, [FromBody] TapRequest request) { AdbDroid.Tap(game, request.X, request.Y); await Task.Delay(TimeSpan.FromSeconds(0.5)); var screenshotName = CaptureByAction(game, $"{request.X};{request.Y}"); //var screenshotName = CaptureByAction(game, "wait"); return(Json(new { visionShot = screenshotName })); }
public IActionResult Tap(string game, [FromBody] TapRequest request) { AdbDroid.Tap(game, request.X, request.Y); return(Json(new {})); }