17 lines
376 B
Python
17 lines
376 B
Python
from __future__ import annotations
|
|
|
|
from core.device_manager import DeviceManager
|
|
from tools._device import get_driver
|
|
|
|
|
|
def tap(
|
|
x: float,
|
|
y: float,
|
|
*,
|
|
device_id: str | None = None,
|
|
manager: DeviceManager | None = None,
|
|
) -> dict[str, object]:
|
|
get_driver(device_id, manager=manager).tap(x, y)
|
|
return {"ok": True, "action": "tap", "x": x, "y": y}
|
|
|