[Gambas-user] Reading pen pressure from wacom tablets
Ricardo Díaz Martín
oceanosoftlapalma at ...626...
Fri Aug 10 08:01:52 CEST 2012
Thanks Benoit,
I'm going directly to the shop to buy a wacom tablet to test it.
Hope to try it this weekend.
I'll keep you informed.
Regards,
2012/8/10 Benoît Minisini <gambas at ...1...>
> Le 25/07/2012 08:15, Ricardo Díaz Martín a écrit :
> > Hi,
> >
> > I wonder if there is some way to read the pen pressure from wacom like
> > tablets in gambas. I have read some documentations for java and looks
> like
> > wacon tablets works like a normal mouse with some extra properties you
> can
> > get: pressure, rubber mode, etc...
> >
> > I know there is qt4 support for this but I have not experience with qt4.
> I
> > can do it in java but of course I prefer gambas3 :-p
> >
> > Regards,
> > Ricardo Díaz
>
> Hi,
>
> Since revision #5024, you can catch tablet events with Gambas. But I
> can't test it, so I need you now!
>
> At the moment, it works like that:
>
> 1) Only DrawingArea can catch tablet events. You need to set its new
> 'UseTablet' property to TRUE.
>
> 2) Then each tablet event will raise a MousePress, MouseMove or
> MouseRelease event.
>
> 3) The properties of the tablet event are stored inside the new
> 'Pointer' static class.
>
> 4) The 'Pointer' class has the following properties:
>
> - X : the floating point X global coordinate.
> - Y : the floating point Y global coordinate.
> - XTilt: the X tilt.
> - YTilt: the Y tilt.
> - Pressure: the pressure.
> - Rotation: the rotation.
> - Type: the pointer type, which be either Pointer.Mouse, Pointer.Pen,
> Pointer.Eraser or Pointer.Cursor.
>
> I have no idea if it works. Maybe I will buy a Wacom tablet, I don't
> know. But now I'm waiting for your returns!
>
> Thanks in advance.
>
> Regards,
>
> --
> 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