feat(headless): complete deterministic bot command parity
This commit is contained in:
parent
7e8acb74dd
commit
38e83640d9
37 changed files with 2805 additions and 295 deletions
|
|
@ -3,8 +3,8 @@ using AcDream.UI.Abstractions.Input;
|
|||
namespace AcDream.App.Input;
|
||||
|
||||
internal interface IMovementInputSource
|
||||
: IRuntimeMovementInputSource
|
||||
{
|
||||
MovementInput Capture();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -53,6 +53,9 @@ internal sealed class DispatcherMovementInputSource : IMovementInputSource
|
|||
if (_capture?.DevToolsWantCaptureKeyboard == true)
|
||||
return default;
|
||||
|
||||
if (_movement.HasCommandInput)
|
||||
return _movement.CommandInput;
|
||||
|
||||
if (_dispatcher is not { } dispatcher)
|
||||
return default;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue