controller-0.1.0
توضیحات
Enables connection to ControllerApp
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | controller-0.1.0 |
| نام | controller |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Faruk Hammoud |
| ایمیل نویسنده | farukhammoud@student-cs.fr |
| آدرس صفحه اصلی | https://www.controllerapp.ml |
| آدرس اینترنتی | https://pypi.org/project/controller/ |
| مجوز | - |
#  ControllerApp
Now, it`s possible to use your phone as a controller to develop games and interactive programs in python!
**ControllerApp** is a tool that allows you to catch all sorts of UI events like a simple tap on your mobile's screen or a device's acceleration directly in your Python code.
## App Installation
The app is available at [Play Store](https://play.google.com/store/apps/details?id=ml.controllerapp.controllerapp).
## Python Package Installation
Install the controller package using **pip**:
```
pip install controller
```
## How to use
The communication works with a 6-letters code: it`s enought to put the same code in both App and Python code to start using it.
In the app, the code field is ommited: You just need to minimize the square to make it appears!
In the Python side, you can test the tap functionality with the following example:
```python
from controller import Controller
c = Controller('a1b2c3') '''room code'''
def myFunction(x,y):
print('hello world',x,y)
c.mobile.onTap = myFunction
```
## More functions
Explore all the possibilities in the [ControllerApp Documentation](https://www.controllerapp.ml).
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | python-socketio |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl controller-0.1.0:
pip install controller-0.1.0.whl
نصب پکیج tar.gz controller-0.1.0:
pip install controller-0.1.0.tar.gz