Emulate a joystick by tilting your tablet.
Project description
Tablet Tilt Joystick
A program that lets you use your tablet's tilting to emulate an actual joystick on a computer. Currently this only works on Linux systems as it uses uinput
behind the scenes. It might work on Macs, I haven't got a Mac so I can't test.
It's called tablet tilt joystick but it will work with any handheld device with a reasonably modern web browser and an orientation sensor.
Runs a light web server which you can connect to in a browser on your tablet.
Install with pip then run with python3 -m tablet_tilt_joystick
or just tablet_tilt_joystick
and connect to <your ip>:4242
on a mobile device to get started. If a suitable image display program is found, it will also show a QR code that you can scan with a mobile device to get to the IP quickly. The joystick will show up in your system as something like python-uinput
.
Troubleshooting
If your tablet fails to find the server, make sure this program isn't blocked by a firewall. Also try navigating to your computers ip manually on the tablet.
Publishing to pypi:
First install the required packages: pip install build twine
.
Then run python -m build
from this directory. If there were no errors then run python3 -m twine upload --repository testpypi dist/*
.
Project details
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 tablet-tilt-joystick-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0dd8bb8abb10efdc8d8950e853008abc3ea5216988fa4656eb655bd65efdc9c |
|
MD5 | 092f8b69c731e2cd1553fbb4e338047d |
|
BLAKE2b-256 | 7a4d8db94228c205fcbdc2ab88668ca1ce88e7836c93f70dc83dff660d3dee60 |
Hashes for tablet_tilt_joystick-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69a8e10206507b56b70377ab73111c085dd5d339e5e26290fdc1c8ddc61d76ef |
|
MD5 | 86420cff3d9be4448117366d10a59cb4 |
|
BLAKE2b-256 | 60cbb03911d11a0c8942ebbbdfd49e802a3da17b9919ce617ec97c5c7d01e782 |