Enables connection to ControllerApp
Project description
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.
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:
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for controller-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d326c7f13901de4d088b7752bfb3de474183b874d8c049ddd729649862474c3 |
|
MD5 | 46a59a1efb6776fccfca13c0edd5b593 |
|
BLAKE2b-256 | 78ed1a81582147a2e89541020adc562460209337ad60aff0f56e2491ee5c9f07 |