[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Wanna catch a motion event
- From: Andreas Sliwka <goff nef wh uni-dortmund de>
- To: gtk-app-devel-list redhat com
- Subject: Re: Wanna catch a motion event
- Date: Sun, 6 Feb 2000 20:33:22 +0100
On Sun, Feb 06, 2000 at 12:21:18PM -0500, Havoc Pennington wrote:
> Read about motion notify events in the GTK tutorial or in my book. You
> need to call gtk_window_get_pointer().
I guess you mean gdk_window_get_pointer(). But your book does not help me much
with that: How should I do this?
When I got the first motion event (mouse enters window) I call
gdk_window_get_pointer(). I get some mouse coords. And than? Do I have to call
gdk_window_get_pointer() every 0.1 second to get a constant flow of coords?
I would prefer that my "motion_event" handler would get called automatically ...
mfg
--
Andreas Sliwka | goff@nef.wh.uni-dortmund.de | ICQ goff:13961062
------BEGIN GEEK CODE BLOCK-----
GCS/MU/L d-(+) S:++ a- C++$ UL++$ P++$ L+++$ E--- W+$ N++ o-- K- w-- O- !M !V
PS+(++) PE Y+ PGP>++ t(+) 5+ X- R tv+ b+++ DI++ D G e+ h- r++ x+++
-------END GEEK CODE BLOCK------
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]