gvalkov / python-evdev

Python bindings for the Linux input subsystem
https://python-evdev.rtfd.org/
BSD 3-Clause "New" or "Revised" License
334 stars 112 forks source link

Enforce key repeat by kernel #192

Open mikethebos opened 1 year ago

mikethebos commented 1 year ago

As seen in evsieve, it is possible to ask the Linux kernel to insert repeat (EV_KEY, value 2) events automatically for a UInput device:

If repeat=enable is set on an --output device, then all repeat events that reach this --output argument will be dropped, but the kernel will be asked to automatically generate repeat events for this device.

How can I use python-evdev to request this from the kernel, preferably with the rate and delay of some other InputDevice?

sezanzeb commented 1 year ago

I don't think python-evdev can do it

mikethebos commented 1 year ago

Thanks. Do any alternatives come to mind (except writing these events manually)?