Newsgroups: comp.windows.x
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!xzaphod!michael
From: michael@xzaphod.uucp (Michael R. Miller)
Subject: Re: How to simulate mouse events from a data tablet
Message-ID: <1991May30.184357.27106@xzaphod.uucp>
Keywords: Integrate multiple input devices
Reply-To: michael@xzaphod.UUCP (Michael R. Miller)
Organization: XZaphod in Rockville, MD
References: <1991May29.150652.20665@engage.pko.dec.com>
Distribution: usa
Date: Thu, 30 May 1991 18:43:57 GMT

In article <1991May29.150652.20665@engage.pko.dec.com> davis@3d.enet.dec.com (Peter Davis) writes:
>
>In article <64370@bbn.BBN.COM>, schroder@bbn.com (Ken Schroder) writes...
>>I'm trying to integrate a data tablet with the mouse using X11R4.
>>I'd like the cursor to move whenever I move either the mouse of the
>>cursor/pen on the tablet.  I'd like X clients to receive a button
>>event whenever a button on either the mouse or tablet is pressed
>>or released.  Has anyone already done this?
>>	...
>
>Gee, I'm trying to do almost this exact thing.  I'm looking at a whole
>bunch of input devices, and I want to be able to simulate mouse movements
>by sending events, and then send any additional data that the devices can
>input via the ClientMessage mechanism.
>	...
>To do motion, I found I had to:
>	...
>To do button transitions, I had to:
>	...
>I still don't have this completely working, so I won't vouch for the
>completeness of the above procedures.  If anyone has any improvements or
>suggestions, I'd be glad to hear 'em.
>
>Thanks.
>-pd

Suggestion:  Modify the input devices management code in the server to
look for additional input devices.  This is what I did to solve the
problem.

Presumption (perhaps a big one):  You have (or can obtain) the source
for your server.

Michael R. Miller
uunet!xzaphod!michael
