Re: Mouse position with key event
- From: Owen Taylor <otaylor redhat com>
- To: Jon Cook <cookj cs man ac uk>
- Cc: gtk-list gnome org
- Subject: Re: Mouse position with key event
- Date: 06 Nov 2000 09:03:12 -0500
Jon Cook <cookj cs man ac uk> writes:
> Hi,
>
> Unlike its X equivalent, the GdkEventKey data structure does not
> contain the position of the mouse when the key press/release event
> occurred. Is there any way of getting this information.
Not really, sorry. You can use gdk_window_add_filter() to get
direct access to the X event.
Alternatively, you can use gdk_window_get_pointer() when you receive
the event and assume that is close enough.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]