Re: mouse and keyboard questions
- From: "Timothy M. Shead" <tshead k-3d com>
- To: Havoc Pennington <hp redhat com>
- Cc: joch <joch ttelaviv sgi com>, gnome-devel-list <gnome-devel-list gnome org>, gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: mouse and keyboard questions
- Date: Fri, 03 Nov 2000 16:48:14 -0800
Havoc Pennington wrote:
joch <joch ttelaviv sgi com> writes:
1. how can i move the mouse from inside my application (e.g. tell the
mouse to go to a specific point in my window )?
Include gdk/gdkx.h and use XWarpPointer() (see the man page for it).
Not supported by the portability layer, so you have to
platform-specific.
Recent versions of the C++ SDPGTK (http://www.k-3d.com) library have
several high-level methods that provide this type of functionality, and
are cross-platform (*nix and Win32).
sdpGtkWidget::InteractiveWarpPointer() moves the pointer smoothly as if
under user control. Other methods are available for simulating button
presses, menu picks, etc.
Regards,
Timothy M. Shead
tshead k-3d com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]