Metadata-Version: 2.1
Name: enjoy
Version: 0.1.2
Summary: I/O agnostic approach to linux input system
Home-page: https://github.com/tiagocoutinho/enjoy
Author: Jose Tiago Macara Coutinho
Author-email: coutinhotiago@gmail.com
License: GPLv3
Project-URL: Documentation, https://github.com/tiagocoutinho/enjoy
Project-URL: Source, https://github.com/tiagocoutinho/enjoy
Description: # enjoy
        
        [![Pypi Version](https://img.shields.io/pypi/v/enjoy.svg)](https://pypi.python.org/pypi/enjoy)
        [![Python Versions](https://img.shields.io/pypi/pyversions/enjoy.svg)](https://pypi.python.org/pypi/enjoy)
        
        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:
        
        ```python
        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)
        ```
        
Keywords: enjoy,input,joystick,gamepad,linux
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.5
Description-Content-Type: text/markdown
