Re: GTK3 -- query mouse pointer coordinates for keyboard input?
- From: Stefan Salewski <mail ssalewski de>
- To: "Jasper St. Pierre" <jstpierre mecheye net>
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: GTK3 -- query mouse pointer coordinates for keyboard input?
- Date: Fri, 17 Jan 2014 23:21:39 +0100
On Fri, 2014-01-17 at 17:11 -0500, Jasper St. Pierre wrote:
Yeah. This is to maintain ABI compatibility. Technically, events have
private internal data, and you can use gdk_event_get_device(); to get
the
keyboard device for a key event.
This isn't documented very well; we should perhaps clean this up.
I guess current GTK3 Ruby bindings do not allow event_get_device() for
keyboard events :-(
Maybe
https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-get-screen
followed by
https://developer.gnome.org/gdk2/stable/GdkScreen.html#gdk-screen-get-display
followed by
https://developer.gnome.org/gdk2/stable/GdkDisplay.html#gdk-display-get-pointer
may give me the current mouse coordinates of pointer in my drawing area?
Best regards,
Stefan Salewski
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]