Re: [gtk-list] Relative mouse motion?
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Relative mouse motion?
- Date: Sun, 21 Mar 1999 17:25:34 -0500 (EST)
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...
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]