Re: using a Wacom from Cocoa - buttons other than 0...
Re: using a Wacom from Cocoa - buttons other than 0...
- Subject: Re: using a Wacom from Cocoa - buttons other than 0...
- From: "David W. Halliday" <email@hidden>
- Date: Mon, 28 Jan 2002 09:58:37 -0600
- Organization: Latin AmeriCom, formerly Latino Online
"Michael B. Johnson" wrote:
>
I know that this is almost a support question for Wacom, but I realized
>
that I don't really know what to tell them, so I thought I'd sanity
>
check here first...
>
>
...
>
>
So I realize that I'm potentially treading on sacred ground here, but is
>
the notion of more than one button a purely Cocoa thing (since NeXT had
>
at least a 2 button mouse) that Carbon doesn't have? This can't be
>
true, right? So what do I tell a device manufacturer that wants to
>
allow one of the mappings of their device to be button n, where n > 0?
>
>
--> Michael B. Johnson, Ph.D. -- email@hidden
>
...
It's all in the drivers :-)
The Tablet drivers are designed to support upwards of 16 or 32 buttons (I'm noyt
looking at the code right now, so this is from memory). The events so generated
(NSEvent and Carbon events) provide methods for determining which button was
pressed. However, if the driver doesn't do The-Right-Thing (TM), there's no hope
for the rest of the event system.
By the way. Make sure that there is NO mapping of the other buttons to modifier
combinations. (A kludge inherited from the classic Mac OS to make multi-button
pointing devices compatible with only-single-button-aware applications.) You can
check to see if this is the problem/issue by checking the modifier information, as
well at the button information, from the mouse events.
David email@hidden