Add initial implementation of AI agent with mouse and keyboard control features

This commit is contained in:
2025-05-19 00:48:14 +02:00
parent ed34ebca6a
commit 7e612c1af7
8 changed files with 320 additions and 0 deletions

20
objects/inputs.py Normal file
View File

@@ -0,0 +1,20 @@
from dataclasses import dataclass
from enum import Enum
class ButtonType(Enum):
LEFT = "left"
DOUBLE_LEFT = "double_left"
RIGHT = "right"
MIDDLE = "middle"
@dataclass
class KeyboardInput:
text: str
press_enter: bool = False
@dataclass
class MouseInput:
x: int
y: int
click_type: list[ButtonType]