Skip to content

Test EVIOCSREP case and fix libevdev_get_repeat()

EVIOCSREP sets the autorepeat rates in the input core. It uses a two-element array that sets the initial delay and the repeat rate. This is not used by libevdev, however, getting these rate values it is supported. These values are cached, but nothing prevents userspace to set these values directly calling the ioctl. In such case, as libevdev cached the rate values the returned values are wrong.

This patch series adds a test case to show this problem and also fixes libevdev_get_repeat() function.

Merge request reports

Loading