[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

8632.0. "Xdevice driver development" by HYDRA::LNARAYAN () Wed Jan 29 1997 10:03

    Hello
    
    A partner is looking for example code/docs relating to XDevice driver
    development. Can someone help with pointers to docs/example etc.
    
    Thanks in Advance
    Lakshminarayan
    
    =========================================================================
We have a 3D input device (special mouse) that we use to collect data into our
system.  It feeds data in through a serial port.  Currently on the DEC Alpha,
we use code that reads the data into the program directly from the serial port.
 On the SGI however, we were able to write a streams module that took data from
the serial port and converted the data into the format expected by the XServer.
 We added the streams module as an XDevice to the Xserver.  Using the XInput
extensions, we were able to receive motion and input events from the device as
XEvents (XDeviceMotionEvent etc.).  More importantly, we are able to allow our
3D mouse device to replace the standard mouse as the XPointer device.  This
allows a user of our 3D mouse to change from a mode where the device events
from our 3D mouse are being received by our program only, to a mode where the
Xwindows pointer is being moved by our 3D mouse.  Our 3D mouse can then be used
to select menu items etc.  The user can then switch back so that the standard
mouse is the XPointer device and the events from our 3D mouse are only being
processed by our program.

    ===========================================================================
T.RTitleUserPersonal
Name
DateLines
8632.1DECWIN::MCCARTNEYWed Jan 29 1997 12:176
    The X Input extension is supported by Digital UNIX.  The best
    documentation on the extension is what comes from the X Consortium. 
    We've not documented how to use it in the Digital UNIX books.
    
    Irene