PDA

View Full Version : Mouse pointer positioning in X Windows



Mickeysofine1972
January 3rd, 2007, 12:45 AM
Hey does anyone know what functions to use to get Xwindows to position the mouse as acertain point?

I tried this in SDL but i want to be able to do this regardless of what window has the focus.

Mike

Houman
January 3rd, 2007, 01:03 AM
Hi there,

If you have the libx11-dev package installed (which i am assuming you do since you wanna do X programming) just do a "man XQueryPointer",

regards
Houman

Mickeysofine1972
January 3rd, 2007, 03:10 PM
Thats seems to only return the current coords not set them

Mike

tomchuk
January 3rd, 2007, 04:37 PM
man 3 XWarpPointer