Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!jik From: jik@ATHENA.MIT.EDU (Jonathan I. Kamens) Newsgroups: comp.windows.x Subject: Cursor Control Message-ID: <8904122024.AA03925@PIT-MANAGER.MIT.EDU> Date: 12 Apr 89 20:24:57 GMT References: <38587@bbn.COM> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 34 Linda Lovero asks: 1. How to control the position of the mouse cursor. 2. How to decouple mouse movement from cursor movement. The XWarpPointer function can be used to change the position of the mouse cursor. Its declaration is as follows: XWarpPointer(display, src_w, dest_w, src_x, src_y, src_width, src_height, dest_x, dest_y) Display *display; Window src_w, dest_w; int src_x, src_y; unsigned int src_width, src_height; int dest_x, dest_y; Look it up for further information. As for decoupling mouse movement from cursor movement, I do not think there is any support for that. The best you can do is to warp the cursor back to where you want it every time you get a motion event (I could be wrong, of course :-). Finally, you might want to consider writing a device driver for whatever device you are using to control the pointer location. If you've got someone who can do it, it would probably be the best solution -- make the serial device the mouse rather than the mouse.... Jonathan Kamens USnail: MIT Project Athena 410 Memorial Drive, No. 223F jik@Athena.MIT.EDU Cambridge, MA 02139-4318 Office: 617-253-4261 Home: 617-225-8218