Evdev

Latest version: v1.9.1

Safety actively analyzes 723166 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 7

0.4.5

====================

- Add method for returning a list of the currently active keys -
:func:`InputDevice.active_keys()` (thanks `spasche`_).

- Fix a potential buffer overflow in :func:`ioctl_capabilities()` (thanks `spasche`_).

0.4.4

====================

- Calling :func:`InputDevice.read_one()` should always return ``None``,
when there is nothing to be read, even in case of a ``EAGAIN`` errno
(thanks JPP).

0.4.3

====================

- Silence :class:`OSError` in destructor (thanks `polyphemus`_).

- Make :func:`InputDevice.close()` work in cases in which stdin (fd 0)
has been closed (thanks `polyphemus`_).

0.4.2

====================

- Rework documentation and docstrings.

- Call :func:`InputDevice.close()` from :func:`InputDevice.__del__()`.

0.4.1

====================

- Fix reference counting in :func:`InputDevice.device_read()`,
:func:`InputDevice.device_read_many()` and :func:`ioctl_capabilities`.

0.4.0

====================

- Add ``FF_*`` and ``FF_STATUS`` codes to :func:`ecodes` (thanks `bgilbert`_).

- Reverse event code mappings (``ecodes.{KEY,FF,REL,ABS}`` and etc.)
will now map to a list of codes, whenever a value corresponds to
multiple codes::

>>> ecodes.KEY[152]
... ['KEY_COFFEE', 'KEY_SCREENLOCK']
>>> ecodes.KEY[30]
... 'KEY_A'

- Set the state of a LED through :func:`InputDevice.set_led()` (thanks
`accek`_).

- Open :attr:`InputDevice.fd` in ``O_RDWR`` mode from now on.

- Fix segfault in :func:`InputDevice.device_read_many()` (thanks `bgilbert`_).

Page 5 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.