[PATCH libinput v3 0/1] Fix debouncing algorithm

2017-11-11 Thread Vicente Bergas
On Wed, 8 Nov 2017 21:19:04 +1000, Peter Hutterer wrote: >On Tue, Nov 07, 2017 at 10:26:11PM +0100, Vicente Bergas wrote: >>Hi Peter, >> >>On Thu, Nov 2, 2017 at 2:04 AM, Peter Hutterer >>wrote: >>> On Thu, Nov 02, 2017 at 12:34:01AM +0100, Vicente Bergas wrote: >>... I hope it is fixed, but

[PATCH libinput v3 1/1] Fix debouncing algorithm

2017-11-11 Thread Vicente Bergas
Bouncing can occur when a button toggles, both press and release, and can bounce multiple times for each toggling. The algorithm has two states: cancel_noise==false and cancel_noise==true. When not canceling noise, the default state, any event received is inmediately committed and state is changed