-
Getting mouse position.
I'm porting a library from Windows to Linux. On Windows, I can use GetCursorPos() and SetCursorPos() to get and set the cursor position.
Is there any equivalent on Linux? Preferably, i'm looking for a standard-ish function that would work on multiple desktop environments, without dependance on a library like GTK or Qt.
-
you might try reading the documentation for the x server itself. both xfree86 and xorg [ same software, just a name change ] have non widgetset based tools for this.
you can get cursor position, window position, display resolution information from the xserver.
http://wiki.x.org/wiki/DevelopersPages may be a good starting place for reading the documentation.