Skip to content

slendidev/libvinput.py

Repository files navigation

Python bindings for libvinput

Installation

You can install the bindings this way:

$ python3 -m pip install vinput

Please note on Linux, you need libxdo installed.

Example

The simplest program is the following:

import vinput
l = vinput.EventListener(True)
l.start(print)

You can log mouse buttons and movements too:

import vinput
l = vinput.EventListener(True, True, True)
l.start(print, print, print)

Donating

If you feel this library has been helpful, please consider supporting me by donating through my Ko-Fi. Thank you!

License

This software is licensed under the AGPLv3 license, more info in the LICENSE file.

About

Python bindings for libvinput

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages