[comp.windows.open-look] HELP needed in writing EXTENSION for PEN input device

hakura@seas.gwu.edu (Ziyad Sami Hakura) (06/22/91)

     I have a tablet and pen that connect via an RS232 serial connection to my
workstation.  The pen is both pressure and tilt sensitive.	

     I wish to write a device driver that will receive data from the pen and
will convert this data into events that are outside the normal range defined 
by the X Protocol.  My program should then receive these events at a procedure  which is set using the Xview SERVER_EXTENSION_PROC attribute.

     My problem is that I have no idea on how to write an extension that 
produces custom events.  I would like my device driver to be called around
25 times per second to test the status of the pen and to produce events when
required.  Is it possible to write such an extension?  

     If anyone has written an extension that receives input from an alternative
input device, it would be very helpful if you could send me a copy of your 
extension.  The only documentation I have is the X Protocol Reference Manual and
the Xlib Programming Manual by O'Reilly & Associates, Inc.  Their documentation
of extensions is very poor.  If you have any advice on more helpful text or 
implementation ideas, please write.

                               Thanks for any help and advice.
                               Ziyad.

P.S. I am using Xview, OpenWindows 2.0, and SunOS 4.1. The pressure sensing
pen is by GTCO Corporation (Digi-Pad 5 Family) which includes the 4D Digi-Pad
option X,Y,Z & Tilt.