linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Ping Cheng <pinglinux@gmail.com>
Cc: linux-input@vger.kernel.org, Ping Cheng <pingc@wacom.com>
Subject: Re: [PATCH 3/3 v2] input - wacom_w8001: Add one finger touch support
Date: Tue, 28 Dec 2010 23:42:20 -0800	[thread overview]
Message-ID: <20101229074220.GB13061@core.coreip.homeip.net> (raw)
In-Reply-To: <20101229074058.GA13061@core.coreip.homeip.net>

On Tue, Dec 28, 2010 at 11:40:58PM -0800, Dmitry Torokhov wrote:
> Hi Ping,
> 
> On Fri, Dec 17, 2010 at 09:37:54AM -0800, Ping Cheng wrote:
> > Signed-off-by: Ping Cheng <pingc@wacom.com>
> > ---
> >  drivers/input/touchscreen/wacom_w8001.c |   89 ++++++++++++++++++++++++++++---
> >  1 files changed, 82 insertions(+), 7 deletions(-)
> > 
> > diff --git a/drivers/input/touchscreen/wacom_w8001.c b/drivers/input/touchscreen/wacom_w8001.c
> > index 59664a8..763eb8f 100644
> > --- a/drivers/input/touchscreen/wacom_w8001.c
> > +++ b/drivers/input/touchscreen/wacom_w8001.c
> > @@ -3,6 +3,7 @@
> >   *
> >   * Copyright (c) 2008 Jaya Kumar
> >   * Copyright (c) 2010 Red Hat, Inc.
> > + * Copyright (c) 2010 Ping Cheng, Wacom. <pingc@wacom.com>
> >   *
> >   * This file is subject to the terms and conditions of the GNU General Public
> >   * License. See the file COPYING in the main directory of this archive for
> > @@ -86,6 +87,12 @@ struct w8001 {
> >  	char phys[32];
> >  	int type;
> >  	unsigned int pktlen;
> > +	bool pen_in_prox;
> > +	bool has_touch;
> 
> We already have type, why do we need these 2 fields a well?
> 
> Actually, I tried massaging the patch a bit, could you please tell me if
> the patch below still works for you?
> 
> Thanks.
> 

And while we are at it could you please try this patch as well...

Thank you!

-- 
Dmitry

Input: wacom_w8001 - add single-touch pointer emulation

Let's emit single-touch compatible events for the 2-finger panels so that
they can be used with legacy clients.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

 drivers/input/touchscreen/wacom_w8001.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/drivers/input/touchscreen/wacom_w8001.c b/drivers/input/touchscreen/wacom_w8001.c
index ce8c8e1..01489f7 100644
--- a/drivers/input/touchscreen/wacom_w8001.c
+++ b/drivers/input/touchscreen/wacom_w8001.c
@@ -145,6 +145,7 @@ static void parse_multi_touch(struct w8001 *w8001)
 		}
 	}
 
+	input_mt_report_pointer_emulation(dev, true);
 	input_sync(dev);
 }
 
@@ -420,6 +421,9 @@ static int w8001_setup(struct w8001 *w8001)
 						0, touch.y, 0, 0);
 			input_set_abs_params(dev, ABS_MT_TOOL_TYPE,
 						0, MT_TOOL_MAX, 0, 0);
+
+			__set_bit(BTN_TOOL_DOUBLETAP, dev->keybit);
+
 			break;
 		}
 	}

  reply	other threads:[~2010-12-29  7:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-17 17:37 [PATCH 3/3 v2] input - wacom_w8001: Add one finger touch support Ping Cheng
2010-12-29  7:40 ` Dmitry Torokhov
2010-12-29  7:42   ` Dmitry Torokhov [this message]
2010-12-29 22:54     ` Ping Cheng
2011-01-02  8:59       ` Dmitry Torokhov
2010-12-29 22:30   ` Ping Cheng
2010-12-30 18:25     ` Ping Cheng
2011-01-02  9:01       ` Dmitry Torokhov
2011-01-03  4:59         ` Ping Cheng
2011-01-03  6:33           ` Dmitry Torokhov
2011-01-02  8:56     ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101229074220.GB13061@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=pingc@wacom.com \
    --cc=pinglinux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).