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 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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896f428a2d6fc84c35c5a28bb776ae409ffb389b25cef5cfda1395644d2b01d0 |
|
MD5 | ad1e73159953cc75809dfbe7ba52629c |
|
BLAKE2b-256 | da0e8b0684d6d471fa8dc2f9b1b6edb7e8916eadc2a64f61155276d1765633de |
Hashes for tablet_tilt_joystick-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607af8bf9552c2bad0044f9cb9b726e46c8b8bede343188f28ea49915dafc45b |
|
MD5 | 352a9924e533dd5360aac207dbaf59f2 |
|
BLAKE2b-256 | 1d105a6a5fed7552ab5da97a0f40af942911f5f6490092304bee67a5008c68de |