poco.drivers.std.inputs module
- class StdInput(client)[源代码]
-
- click(x, y)[源代码]
Perform click action as simulated input on target device. Coordinates arguments are all in range of 0~1.
- 参数:
y (
float
) – y-coordinatex (
float
) – x-coordinate
- double_click(x, y)[源代码]
Perform click action as simulated input on target device. Coordinates arguments are all in range of 0~1.
- 参数:
y (
float
) – y-coordinatex (
float
) – x-coordinate
- keyevent(keycode)[源代码]
Send a key event to target device.
- 参数:
keycode (
int
orchar
) – Ascii key code
- longClick(x, y, duration)[源代码]
Perform press action as simulated input on target device within given seconds. Coordinates arguments are all in range of 0~1.
- 参数:
x (
float
) – x-coordinatey (
float
) – y-coordinateduration (
float
) – time interval to perform the action
- swipe(x1, y1, x2, y2, duration)[源代码]
Perform swipe action as simulated input on target device from point A to B within given time interval to perform the action. Coordinates arguments are all in range of 0~1.
- 参数:
x1 (
float
) – x-coordinate of the start pointy1 (
float
) – y-coordinate of the start pointx2 (
float
) – x-coordinate of the end pointy2 (
float
) – y-coordinate of the end pointduration (
float
) – time interval to perform the swipe action