On 18.11.2010, at 20:54, Greg Ercolano wrote:

>       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?

It uses the FL_PUSH, MOVE, DRAG, and RELEASE events. Additionally, we have

Fl::event_device():  DEVICE_MOUSE, DEVICE_STYLUS, DEVICE_ERASER, DEVICE_CURSOR, 
DEVICE_AIRBRUSH, DEVICE_TOUCH 
float   event_pressure ()
float   event_x_tilt ()
float   event_y_tilt ()
and possibly more

activated by

bool enable_tablet_events ()
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to