On May 29, 2007, at 12:58 AM, Greg Ercolano wrote:

> matthiasm wrote:
>> - plugin system for additional devices like tablets, 3D mice,
>> extended keyboards
>
>       Yes, I can see where pen pressure and pen orientation in
>       tablets would be handy info to get from fltk, similar to
>       how mouse x/y coords can be had, esp. for paint/drawing
>       programs. (I'm assuming fltk doesn't currently support
>       passing through stuff like pen pressure, maybe I'm wrong)
>
>       I have some tablet code for X windows I wrote ages ago
>       that may be useful for tablet support; it uses extended X events
>       to read the tablet's pen pressure, tilt, eraser, etc:
>       http://seriss.com/people/erco/wacom/
>       ..see 'tinypaint.c' as an example showing this using plain X
>       and openGL. (Thankfully, I think this is the /last/ X program
>       I ever wrote)

Yes, I know your code. The FLTK2 implementation (yes, FLTK2 has this  
already) of tablet support isbased on your code (and other code).  
There you can get information which device caused a mouse move or  
drag (fltk::device(): pen, mouse or puck), and get the pressure among  
other things.

Matthias

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to