On Mon, Sep 6, 2010 at 11:20 AM, Chris Bagwell <[email protected]> wrote:
> On Mon, Sep 6, 2010 at 1:29 AM, Nikolai Kondrashov <[email protected]> wrote:
>> On 09/06/2010 09:30 AM, Peter Hutterer wrote:
>>>
>>> one example would be having a button switch the stylus between screens in
>>> a
>>> multi-screen setup (I don't think that works right now, but it used to).
>>> all that can be worked around in the client side, provided we actually
>>> have
>>> a client that handles this :)
>>
>> Understood. Thanks :) I'll try to see what happens if my drivers use a
>> single device then.
>>
>
> FYI: I've been motivated by this and some Bamboo Touch patches to get
> xf86-input-wacom to work with input devices that do not use
> multiplexing channel/serial #'s.  In my case, it will be for
> touchpad-like device were the the touchpad X/Y/Pressure and Buttons
> are lumped together.
>
> The modifications I make for this should make it pretty simple to
> extend to simple tablets that have pen+buttons without the
> serial/channel #'s.
>
> I'll post draft patches for comments soon.
>
> Chris
>

OK, patches have been committed to git to allow touchpad-like input
devices to be handled by xf86-input-wacom.  If someone wants to add
new touchpad's beyond Bamboo Touch then they would need to modify
usbWcmInit() to set wcmProtocolLevel to WCM_PROTOCOL_GENERIC for any
unknown devices.

The same goes to handle "dumb tablets" as well.  There is one more
change that needs to be made for tablets and that is to modify
usbParseKeyEvent().  Look for the BTN_TOUCH case statement and address
the TODO somehow (copy&paste logic from BTN_TOOL_PEN case is easy way
to address).

Nick, I hope this helps you in your goal.

There is probably some minor things hiding in wcmDeviceTypeKeys() for
dumb tablets as well but I'm hoping the default values just work
(maybe that means force tablet_id to zero for non-wacom tablets?).

Chris

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to