refactor
This commit is contained in:
parent
4424f4c3a8
commit
0e7de0a5f3
281 changed files with 3188 additions and 611 deletions
19
src/Nexus.Core/IInputController.cs
Normal file
19
src/Nexus.Core/IInputController.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
namespace Nexus.Core;
|
||||
|
||||
public interface IInputController
|
||||
{
|
||||
bool IsInitialized { get; }
|
||||
void KeyDown(ushort scanCode);
|
||||
void KeyUp(ushort scanCode);
|
||||
void KeyPress(ushort scanCode, int holdMs = 50);
|
||||
void MouseMoveTo(int x, int y);
|
||||
void SmoothMoveTo(int x, int y);
|
||||
void MouseMoveBy(int dx, int dy);
|
||||
void LeftClick(int x, int y);
|
||||
void RightClick(int x, int y);
|
||||
void MiddleClick(int x, int y);
|
||||
void LeftDown();
|
||||
void LeftUp();
|
||||
void RightDown();
|
||||
void RightUp();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue