___ __ __ _ _ _ _ _
|` _ `\\`\ /,/ __ _ _ __ __| |_ __ ___ (_) __| | | |_ ___ _ _ ___| |__
| (_) / \ \/ / / _` | '_ \ / _` | '__/ _ \| |/ _` | | __/ _ \| | | |/ __| '_ \
| ,_ / \ ,/ | (_| | | | | (_| | | | (_) | | (_| | | || (_) | |_| | (__| | | |
|_| /_/ \__,_|_| |_|\__,_|_| \___/|_|\__,_| \__\___/ \__,_|\___|_| |_|
PyAndroidTouch
This project is the python 3 support module based on "BobbleKeyboard/android_touch".
Introduction
Support multi finger click / slide / circle / expand and other actions.
- tap (tap, long press click, continuous click, multi finger click)
- swipe (swipe, multi finger swipe) # currently only linear swipe
- circle (circle, long press circle, multi finger circle, continuous circle, reverse circle)
- expand (expand, multidirectional expand) # is equivalent to supporting shrink
How to use
As shown below.
Installation
- Starting from version 0.0.2, the module will be uploaded to pypi. You can also install it directly using pip.
pip install PyAndroidTouch
Manual Installation
-
Open the release page to find the latest version of the installation file.
-
(Optional) download to this machine through browser, and then use pip to execute the following command to install.
pip install PyAndroidTouch-0.0.2-py3-none-any.whl
- Of course, you can also directly copy the download link of the installation package and use pip for online installation. (execute the following command)
# Note: that the link here is version 0.0.2, please replace it with the latest version.
pip install https://github.com/HsOjo/PyAndroidTouch/releases/download/0.0.2/PyAndroidTouch-0.0.2-py3-none-any.whl
Example code
...
Demo
See the "pyandroidtouch/demo" directory.