poco.drivers.std.inputs module¶
-
class
StdInput
(client)[源代码]¶ 基类:
poco.sdk.interfaces.input.InputInterface
-
click
(x, y)[源代码]¶ Perform click action as simulated input on target device. Coordinates arguments are all in range of 0~1.
参数: - y (
float
) – y-coordinate - x (
float
) – x-coordinate
- y (
-
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-coordinate - y (
float
) – y-coordinate - duration (
float
) – time interval to perform the action
- x (
-
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 point - y1 (
float
) – y-coordinate of the start point - x2 (
float
) – x-coordinate of the end point - y2 (
float
) – y-coordinate of the end point - duration (
float
) – time interval to perform the swipe action
- x1 (
-