Matthias Melcher wrote:
> On 18.11.2010, at 19:21, Greg Ercolano wrote:
> 
>> MacArthur, Ian (SELEX GALILEO, UK) wrote:
>>> What aspect of the tablet is/is not supported?
>>>
>>> I use Wacom tablets all the time, with fltk-1.1 and fltk-1.3, and never
>>> had any problem, so...?
>>      I'm wondering if he means stuff like pressure sensitivity,
>>      pen orientation, etc..
> 
> I assume so too. The FLTK 2 tablet support for X11 btw. is partially based
> on the tinypaint code that you published a long time ago ;-) .

        Yes, that's right.. the SGI program I wrote.
        The code is still there on my personal home page:
        http://seriss.com/people/erco/wacom/

        One of the few pure xlib/motif/opengl programs I ever
        had to write.. I hope it stays that way..!

> I added it to FLTK2 at least eight years ago ;-)) . It's about time to get 
> that into FLTK1 on all platforms (hoping that Manolo may help out for OS X).

        I guess the trick was to figure out where in FLTK's
        X11 code to merge that stuff in.

        I think the wacom related stuff is all the calls
        that (a) walk the device list to find the wacom tablet:

                XListInputDevices()
                XOpenDevice()
                XFreeDeviceList()

        ..and (b) register motion events:

                DeviceMotionNotify()
                XSelectExtensionEvent()

        ..and then (c) in the FLTK code there's probably a big
        'switch' statement that can find if the event.type == 
wacom_valuator_event_type
        ..and read in all the wacom data into an array that our own FLTK methods
        can access.

        Or something to that effect?
        
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to