Add initial implementation of AI agent with mouse and keyboard control features
This commit is contained in:
20
objects/inputs.py
Normal file
20
objects/inputs.py
Normal 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]
|
||||
|
Reference in New Issue
Block a user