Getting Mouse Position

Paulo Zanoni przanoni at gmail.com
Wed Feb 7 07:40:04 PST 2007


You can use xlib's XQueryPointer()
See its man page.

On 2/7/07, Baha' Ashour <bashour at infinitetiers.com> wrote:
>
>  Hello All,
>
> How can i get the position of the mouse cursor?
> I'm using the framebuffer to draw something on the screen(desktop), and i
> want to get the position of the cursor.
>
> ncurses give the cursor position in the terminal, but i need on the
> screen(desktop).
>
> *note*:
> I'm using c language, and suse 10.1 linux
>
> Thanks.
> _______________________________
> Baha' Ashour
> Software Engineer
> Infinite Tiers, Inc. |  www.infinitetiers.com
> O: +(972) 9 233-7726 | C: +(972) 599 836-916
>
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20070207/8034bcfd/attachment.html>


More information about the xorg mailing list