[Qt-interest] detecting tablet pen rocker buttons in Qt 4 Linux

Jeffery MacEachern j.maceachern at gmail.com
Fri Dec 31 10:05:21 CET 2010


Paul: Apologies for leaving you hanging this long.  Hopefully this is
still relevant; below is the completed version of the draft I forgot
about.
On Mon, Dec 6, 2010 at 06:43, Paul Miller <paul at fxtech.com> wrote:
> On 12/4/2010 4:41 PM, Jeffery MacEachern wrote:
>>
>> Does the tablet still work properly on the same computer with other
>> applications, such as GIMP?  For that matter, can you tell me which
>> tablet model, driver/Xorg version, and distro (and distro version)
>> you're using?  They can sometimes be a bit fiddly to set up, and I
>> have some small experience in the matter.
>
> It's Ubuntu (6 I think), 2.6.15 kernel. Whatever the stock elements that
> come with that are. wacom_tools and xserver_xorg_input_wacom are version
> 1.0.7.2-0ubuntu6.

Yikes! That's ancient!  I assume you'd be using a newer version if you
could, so I won't bother to suggest upgrading.  What is the model of
your tablet?  The exact number from the label on the bottom would be
best.

Regards,
 - Jeffery MacEachern

> I haven't made any manual edits to any wacom-related config files. If there
> is a driver-level change I can make somewhere to get the rocker buttons to
> map directly to mouse buttons, that would really help.
>
>>
>> Cheers,
>>  - Jeffery MacEachern
>>
>>
>>
>> On Fri, Dec 3, 2010 at 06:09, Paul Miller<paul at fxtech.com>  wrote:
>>>
>>> On 12/2/2010 3:44 PM, Jeffery MacEachern wrote:
>>>>
>>>> I've never actually tried this with my own code, but I have
>>>> successfully used my Wacom Bamboo pen in this way with Qt-based
>>>> applications, so it should be doable.
>>>
>>> Yes, I agree it should be doable. In fact it works properly on Windows,
>>> but I think the driver itself is converting the rocker buttons into
>>> mouse events before it even hits Qt.
>>>
>>> This doesn't seem to be happening on Linux. However, it worked as
>>> expected with Qt 3.
>>>
>>>>   - Jeffery MacEachern
>>>>
>>>>
>>>>
>>>> On Thu, Dec 2, 2010 at 13:11, Paul Miller<paul at fxtech.com>    wrote:
>>>>>
>>>>> Something seems to have changed between Qt 3 and 4. Now, there is no
>>>>> way
>>>>> to detect whether a rocker/side button on a Wacom pen has been pressed.
>>>>> It treats this as a normal TabletPress event, but pressure is 0.
>>>>>
>>>>> I want to treat one of the rocket buttons as a Right Mouse Button and
>>>>> the other as a Middle Mouse Button.
>>>>>
>>>>> Can this be made to work?
>>>>> _______________________________________________
>>>>> Qt-interest mailing list
>>>>> Qt-interest at trolltech.com
>>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>
>
>



More information about the Qt-interest-old mailing list