19 lines
513 B
C#
19 lines
513 B
C#
namespace Roboto.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();
|
|
}
|