[Gambas-user] Reading pen pressure from wacom tablets

Ricardo Díaz Martín oceanosoftlapalma at ...626...
Thu Aug 16 16:01:06 CEST 2012


Hi Benoit,

When I said using gtk+ components tablet is not detected is because the
Pointer.Type is 0 (this is the same value you get using qt4 when you use
the mouse for drawing in the drawing area control).

In using Ubuntu 12.04 gnome 3 so you wacom tablets are plug and play with
the kernel. You don't need to parch kernel neigther X11 no more (you can
read this in sourceforge wacom driver for linux).

It's really strange the crash is produced by keyboard event... I didn't
touch any key 8-)

BTW I have installed qt creator (ubuntu officical repo) and there is an
"tablet" name example. Everything works in this example. In adition looks
like xtilt and ytilt are allways 0 with my wacom bamboo pen. Rotation is
setted to -14.0625 like in gambas3.

Hope that it helps you.

Regards,
Ricardo Díaz



2012/8/16 Benoît Minisini <gambas at ...1...>

> Le 16/08/2012 09:06, Ricardo Díaz Martín a écrit :
> > Ok, this is the information I got:
> >
> > - When I said crash in the IDE too, it means after the crash in the
> > project, if you still moving the pen in the tablet, the IDE got the crash
> > with no information (IDE disappear)
>
> If the IDE segfaults too, then this crash may be a bug in Qt itself...
>
> > - With gtk+ components the tablet is not detected. Tablet is detected as
> > normal mouse. No crash in the project. No crash in the IDE.
>
> How do you know that the tablet is not detected? Did you any X11 stuff
> to configure your tablet?
>
> > - The event Move, Down, Up are right fired. Work as expected with the pen
> > and with the mouse.
> > - If you set Tracking property to true in the drawing area control you
> you
> > got the MouseDown event and MouseUp event some times is fired and some
> > times no.
>
> Mmm...
>
> > - I got the same crash by compiling gambas with no qt4 optimizations
> >
> > gdb with gambas3 qt4 no optimizations compiled was:
> > Starting program: /usr/local/bin/gbx3
> > [Depuración de hilo usando libthread_db enabled]
> > Using host libthread_db library
> "/lib/x86_64-linux-gnu/libthread_db.so.1".
> > [Nuevo Thread 0x7fffea237700 (LWP 20134)]
> > [Nuevo Thread 0x7fffe9a36700 (LWP 20135)]
> > [Nuevo Thread 0x7fffe37c4700 (LWP 20136)]
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > QBasicAtomicInt::ref (this=0x18700000131) at
> > /usr/include/qt4/QtCore/qatomic_x86_64.h:121
> > 121                 : "memory");
> >
> >
> > gdb backtrace was:
> > #0  QBasicAtomicInt::ref (this=0x18700000131) at
> > /usr/include/qt4/QtCore/qatomic_x86_64.h:121
> > #1  0x00007ffff5da1184 in QString (other=..., this=0x7fffffffcd10) at
> > /usr/include/qt4/QtCore/qstring.h:726
> > #2  text (this=0x7fffffffd2b0) at /usr/include/qt4/QtGui/qevent.h:236
> > #3  CWidget::eventFilter (this=0x7ffff60082a0, widget=0x986050,
> > event=0x7fffffffd2b0) at CWidget.cpp:2822
>
> ---> That lines means the crash occurs while receiving a *keyboard*
> event. Does it make any sense to receive a keyboard event while using a
> pen?
>
> We must find other Gambas users having a tablet to help us!
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list