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/*.
Changelog:
1.2.0
- Command line options to use custom hosting port and suppress displaying QR code
1.1.1
- Fix missing dependencies
1.1.0
- First version published to pypi
- Opens QR code
1.0.0 (not published on pypi)
- Basic functionality of
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tablet-tilt-joystick-1.2.1.tar.gz.
File metadata
- Download URL: tablet-tilt-joystick-1.2.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baa43f68a16502f9ba2e9c7b57df22f8bb2c832b435b4a483b3c8625d68cc448
|
|
| MD5 |
7c088b70d5aaeffc3864b7affbb2a8f7
|
|
| BLAKE2b-256 |
bc6d120496a7e8f82c24dc6f5997b4813bfc17eda7f11a068bcae0a0ba6b5da2
|
File details
Details for the file tablet_tilt_joystick-1.2.1-py3-none-any.whl.
File metadata
- Download URL: tablet_tilt_joystick-1.2.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1162310eaf38fc1848a50998c8493a007142ae21e0eaecd197c5045094c6c185
|
|
| MD5 |
049f534b63d64d130d25fd2ce8fa8f3e
|
|
| BLAKE2b-256 |
7224d7e039b52253264144240edc83063cf2e43e48c5c821abfaa8fff7d77a75
|