- New device method to close the device:
Device.destroy()
Device()
is now a context manager suitable to be used withwith
-statement.- Improved device initialization error handling.
- Updated README to include a recommendation to modprobe uinput kernel before usage.
- Launchpad is deprecated in favor of GitHub.
- New module function to open a file descriptor to uinput device:
uinput.fdopen()
Device
constructor accepts an open file descriptor to uinput device as a keyword argument. If not given, uinput file descriptor is opened viauinput.fdopen()
.- Both
README
andNEWS
are renamed and converted to reStructuredText markup.
- Fix libudev1-compatibility issue.
- Fix mouse example.
- Fix Python3-compatibility issue.
- New device methods:
Device.emit_click()
andDevice.emit_combo()
- Keyboard example sleeps to give some time for X11 to assign a proper event handler
- Does not depend on libudev-dev anymore, because of newer libsuinput
which re-distributes
libudev.h
.
- Python3 compatibility
- Python2.6 compatibility
- device id fields can be given in the constructor: bustype, vendor, product and version
- an example of udev rule
- libsuinput is included as a subtree
README
andsetup.py
updated
- Simplified API.
- Uses
ctypes
instead of extension modules. - libsuinput is included as submodule in git repository
- source distributions include
suinput.c
- Documented uinput-module.
- A minimal joystick (abs-axis) example:
examples/joystick.py
. - Reasonable defaults for
abs_parameters
(0, 255, 0, 0).
- Updated project details, such as homepage, download url, etc.
- Explicit dependence on libsuinput.
- Mention Ubuntu-package in
README
.
- New license: GPLv3+