Re: How move the mouse pointer using GTK ?
- From: John Cupitt <jcupitt gmail com>
- To: Tobias Werth <sitowert informatik stud uni-erlangen de>
- Cc: GTK+ application development mail list <gtk-app-devel-list gnome org>
- Subject: Re: How move the mouse pointer using GTK ?
- Date: Thu, 9 Sep 2004 12:44:00 +0000
There's also XWarpPointer() in Xlib, though gdk does not seem to wrap
this (as far as I can see).
On Thu, 9 Sep 2004 13:38:57 +0200, Tobias Werth
<sitowert informatik stud uni-erlangen de> wrote:
Hi,
Did you or anybody else solve this problem? I want to move the mouse pointer
to a definite position and found nothing about mouse movements in gtk API.
You can use the XTest-Extension for this task:
{ move mouse pointer off screen }
XTestFakeRelativeMotionEvent(screen, -240, -170, 0);
XFlush(screen);
Thank you for your fast reply. But I thought of a gtk/gdk solution, because I
wrote a program which should run under CYGWIN and Linux and I want to minimize
code differences between these two versions.
But if there's no such solution I will try your's for Linux and search for
another solution for windows.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]