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.
Basic usage
Install with pip (pip3 install tablet-tilt-joystick
) 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
.
Advanced usage
For advanced usage instructions, run python3 -m tablet_tilt_joystick -h
.
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 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-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 606c15c832a6be1f61e7aa79f01837d8de68e95aa14c54a1f0a032dcd50aad52 |
|
MD5 | 2927b7bb5c6446f6e17cd2fb668919d6 |
|
BLAKE2b-256 | 5a51f349bf59f04cbf8362fa064d1970ad56f16161691570207d2509ed467ba4 |
Hashes for tablet_tilt_joystick-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcd0a0f45b6467a032a2353228b25b4a3f63b9baf8c50b78a53ac6f7b2a76cc2 |
|
MD5 | 655582869f77982ffaf1cd048d64e420 |
|
BLAKE2b-256 | 681198a08c4a187c396121ef759093b1d3334a8c7495466ee7379540cae555eb |