Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!van-bc!ubc-cs!fs1!aero.ee.ubc.ca!jtanlim From: jtanlim@aero.ee.ubc.ca (TANLIMCO JOHN JAY GO) Newsgroups: comp.windows.x Subject: XWarpPointer Message-ID: <1500@fs1.ee.ubc.ca> Date: 28 Jan 91 20:44:38 GMT Sender: root@fs1.ee.ubc.ca Reply-To: jtanlim@aero.ee.ubc.ca () Organization: Dept. of Electrical Engineering University of B.C. Lines: 38 I need some help regarding the use of XWarpPointer. I'm controlling the pointer position by reading in data from the serial port. The data I'm receiving is the absolute coordinates of the desired cursor position. The position of the pointer is to be based solely on the data coming in from the serial port, disregarding any movements the mouse might make. But I still would like to use the three buttons on the mouse. XWarpPointer works fine in controlling the pointer, but it fails when I press the button in the RootWindow. I suspect that XGrabPointer was used, and the process is waiting for events from the real mouse. How can I substitute the motion events of the mouse with the data I'm receiving from the serial ports? Please mail me any ideas you might have as I don't read this news very often. Thank you. ================================================================================ (tm) | University of British Columbia ********* | Dept. of Electrical Engineering * | * | jtanlim@ee.ubc.ca * ********** | * * | * * | ******* ********* * | * | * | * | | ================================================================================