mokr.input.touchscreen
Module Contents
Classes
Class to emulate touchscreen. |
- class mokr.input.touchscreen.Touchscreen(client: mokr.connection.DevtoolsConnection, keyboard: mokr.input.keyboard.Keyboard)
Class to emulate touchscreen.
- Parameters:
client (DevtoolsConnection) – Remote
DevtoolsConnectioninstance.keyboard (Keyboard) – Active
mokr.input.Keyboardfrom the parentmokr.input.Keyboard. Passes active modifiers such as CTRL.
- async tap(x: float, y: float) None
Send touch down and up events to the center of the target coordinates.
- Parameters:
x (float) – X coordinate to move to.
y (float) – Y coordinate to move to.