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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c771d6509c897f8eab41c8713833be0ee32875a53e8f71eacdb60544c7108928 |
|
MD5 | dac0b6f4492e1db1841a5084e37a9d08 |
|
BLAKE2b-256 | c0106a14f1f9ba270cf8906f61104c3a1bcf10b849bd2c4e1ec9d8f4da513881 |
Hashes for tablet_tilt_joystick-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e99aa9122a796d7264c9039a96991fc113ca5d4f897e04f6ea1606e4062b1078 |
|
MD5 | d6c30e9693f5c870da54f6d7493b186d |
|
BLAKE2b-256 | 6062bcebed4df114a13905a597db8c66eb5169335c186844ee11450c67b3bded |