On Tue, Jan 18, 2011 at 2:02 PM, Chris Bagwell <[email protected]> wrote:
> 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.

I know that one. I didn't want to report BTN_TOOL_DOUBLETAP since I
wanted to keep pointer_emulation as a pure single touch backward
support for MT enabled devices. Plus

> 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.

I don't feel we want to rely on another driver for Wacom devices
unless we plan to merge the two drivers. With the current
xf86-input-wacom, pointer_emulation is unnecessary. If the user
happens to use an old xf86-input-wacom and new kernel driver,
BTN_TOOL_DOUBLETAP would only make things worse.

I am thinking to introduce ABS_MT_SLOT to the picture. What do you think?

Ping

> On Tue, Jan 18, 2011 at 3:19 PM, Ping Cheng <[email protected]> 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 <[email protected]> wrote:
>>> From: Ping Cheng <[email protected]>
>>>
>>> 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 <[email protected]>
>>> ---
>>>  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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to