Re: [gtk-list] Re: Relative mouse motion?
- From: Janne Lof <jlof mail student oulu fi>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Relative mouse motion?
- Date: Mon, 22 Mar 1999 01:40:20 +0200 (EET)
On Sun, 21 Mar 1999, Havoc Pennington wrote:
> On Sun, 21 Mar 1999, Janne Lof wrote:
> > Is it possible to get relative mouse postions in GTK? I need to know how
> > much mouse has moved since last motion event, not it's absolute position.
> Save a couple of variables with the position of the last event, then
> compute the delta yourself when you get the next event. The GnomeCanvas
> test in test-gnome works like this...
I have used this method before, but it's not good enough.
Unfortunately it doesnt work when the cursor hits border of
the window (or display) when mouse is moved 'too far' into one
] [Thread Prev