Re: [Linuxwacom-devel] Making sense of suppress

2011-03-02 Thread Ping Cheng
On Wed, Mar 2, 2011 at 7:39 PM, Peter Hutterer wrote: > On Thu, Mar 03, 2011 at 01:35:20PM +1000, Peter Hutterer wrote: > > I'm trying to make sense of the suppress handling in the code and it's > > confusing me. > > > > In wcmEvent() we call wcmCheckSuppress() which compares old and new state > >

Re: [Linuxwacom-devel] Making sense of suppress

2011-03-02 Thread Peter Hutterer
On Thu, Mar 03, 2011 at 01:35:20PM +1000, Peter Hutterer wrote: > I'm trying to make sense of the suppress handling in the code and it's > confusing me. > > In wcmEvent() we call wcmCheckSuppress() which compares old and new state > against the suppress value and then returns: > 0 if the event is

[Linuxwacom-devel] Making sense of suppress

2011-03-02 Thread Peter Hutterer
I'm trying to make sense of the suppress handling in the code and it's confusing me. In wcmEvent() we call wcmCheckSuppress() which compares old and new state against the suppress value and then returns: 0 if the event is to be discarded 1 if there was some state change 2 if there was only motion