What device are you working with that you want this change?  I ask
because I suspect its easier to add DOUBLETAP to that driver instead
of supporting a multi-touch device without DOUBLETAP inside
xf86-input-wacom.

if you make use of input_mt_report_pointer_emulation() in 2.6.37 you
get this support for free as long as you correctly
__set_bit(BTN_TOOL_DOUBLETAP) up front for 2FG devices.

And the plus side is that this device then has 90% change of working
out of the box for both touch and pen's with xf86-input-evdev; at
least enough to pull up a terminal and get config files set up
correctly.

Chris

On Tue, Jan 18, 2011 at 3:19 PM, Ping Cheng <pingli...@gmail.com> wrote:
> Please ignore this patch. It is taking an EV_ABS (MT_TOOL_FINGER) as
> an EV_KEY, which is wrong. I'll have to find another way to cover the
> case.
>
> Chris, you worked on this block of code before. Do you have any
> suggestions? Maybe we have to retrieve EV_ABS.
>
> Ping
>
> On Mon, Jan 17, 2011 at 10:11 PM, Ping Cheng <pingli...@gmail.com> wrote:
>> From: Ping Cheng <pi...@wacom.com>
>>
>> Only 2FGT devices in relative cursor movement, such as Bamboo, send
>> BTN_TOOL_DOUBLETAP events. Use MT_TOOL_FINGER to cover both Bamboo
>> and 2FGT touch screen devices.
>>
>> Signed-off-by: Ping Cheng <pingli...@gmail.copm>
>> ---
>>  src/wcmValidateDevice.c |    6 +++---
>>  1 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
>> index b4154c5..5b1a95c 100644
>> --- a/src/wcmValidateDevice.c
>> +++ b/src/wcmValidateDevice.c
>> @@ -292,9 +292,9 @@ int wcmDeviceTypeKeys(InputInfoPtr pInfo)
>>
>>        if (common->wcmProtocolLevel == WCM_PROTOCOL_GENERIC)
>>        {
>> -               /* DOUBLETAP means 2 finger touch */
>> -               /* FINGER without DOUBLETAP means 1 finger touch */
>> -               if (ISBITSET(common->wcmKeys, BTN_TOOL_DOUBLETAP))
>> +               /* MT_TOOL_FINGER means at least 2 finger touch */
>> +               /* FINGER without MT_TOOL_FINGER means 1 finger touch */
>> +               if (ISBITSET(common->wcmKeys, MT_TOOL_FINGER))
>>                        priv->common->tablet_type |= WCM_2FGT;
>>                else if (ISBITSET(common->wcmKeys, BTN_TOOL_FINGER))
>>                        priv->common->tablet_type |= WCM_1FGT;
>> --
>> 1.7.3.4
>>
>>
>

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to