Skip to main content

enjoy

Pypi Version Python Versions

Pure python, concurrency agnostic, access to linux input system. Useful for controlling game pads, joysticks

Command line

$ python -m enjoy.cli table
+---------------------------------+--------------------+-------------------------+
| Sony PLAYSTATION(R)3 Controller | /dev/input/event26 | SYN, KEY, ABS, MSC, FF  |
+---------------------------------+--------------------+-------------------------+
...


$ python -m enjoy.cli listen /dev/input/event26
X: 129 Y:126 Z:  0 | RX: 128 RY:128 RZ:  0 | EAST WEST

API

API not documented yet. Just this example:

import time
from enjoy.input import find_gamepads

pad = next(find_gamepads())
abs = pad.absolute

with pad:
    while True:
	    print(f"X:{abs.x:>3} | Y:{abs.y:>3} | RX:{abs.rx:>3} | RY:{abs.ry:>3}", end="\r", flush=True)
	    time.sleep(0.1)

Metadata

Release files for enjoy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for enjoy 0.1.2
File Size Uploaded
enjoy-0.1.2.tar.gz 32.8 kB Details

Release files / enjoy-0.1.2.tar.gz

Download URL enjoy-0.1.2.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
26efd4e9c68b8eb010793e76482978f3f82115030571584cbbc6c560c1e249d1
BLAKE2b-256 checksum
How to use checksums
f8ce6d311feb8e01dfffc3f730a9211e2418fe272f80432d79f3612c1c7b26dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page