On Sat, Jun 25, 2011 at 01:05:52PM -0500, ch...@cnpbagwell.com wrote:
> From: Chris Bagwell <ch...@cnpbagwell.com>
> 
> We really need to add hooks to query pre-existing device state when
> input driver starts up because slot ID is almost never sent when
> touching 1 finger to screen.
> 
> In mean time, it makes sense to default device_type to most likely
> value of TOUCH (the T in MT) for this function used only by MT
> devices.
> 
> The default of zero is causing some events to be filtered mistakenly.
> 
> Signed-off-by: Chris Bagwell <ch...@cnpbagwell.com>

Merged 1/4 and this one for now, see my comments to 2/4 for the rest.

Cheers,
  Peter

> ---
>  src/wcmUSB.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/wcmUSB.c b/src/wcmUSB.c
> index 04bd897..d0a634f 100644
> --- a/src/wcmUSB.c
> +++ b/src/wcmUSB.c
> @@ -1359,7 +1359,7 @@ static int usbParseBTNEvent(WacomCommonPtr common,
>   */
>  static int usbInitToolType(const struct input_event *event_ptr, int nevents)
>  {
> -     int i, device_type = 0;
> +     int i, device_type = TOUCH_ID;
>       struct input_event* event = (struct input_event *)event_ptr;
>  
>       for (i = 0; (i < nevents) && !device_type; ++i)
> -- 
> 1.7.5.2

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to