Is it possible to debounce button events?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

In every mouse I have ever owned, as it ages the buttons become less
and less reliable.  Usually this means it starts to send multiple
button press events each time the button is clicked.  The Logitech
mouse I am currently using is now producing double-clicks about 10% of
the time when I only press the left button once.

Rather than replace an otherwise perfectly working device, or
disassemble and clean the switches (again), I am wondering whether
there is any sort of debounce option in the input subsystem.

I am looking for some setting where I can tell the input subsystem to
ignore button-press/release events if they occur within a configurable
amount of time after the initial event, e.g. 10 milliseconds.

This would be quick enough that it would not interfere with intentional
double-clicks, but unintentional double-clicks would be eliminated.

It looks like a few input drivers internally implement debouncing, so
I'm wondering whether there is a generic mechanism that can be used for
any button on any input device?

Many thanks,
Adam.


--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux