Re: where did button events' deviceid field go?
- From: Owen Taylor <otaylor redhat com>
- To: skip pobox com (Skip Montanaro)
- Cc: gtk-list gnome org
- Subject: Re: where did button events' deviceid field go?
- Date: 31 May 2001 14:07:06 -0400
Skip Montanaro <skip pobox com> writes:
> I'm starting to update Tim Janik's gerd tool for gtk 1.3.x and am currently
> trying to handle changes to the event structs. In 1.2 _GdkEventButton is
> defined as
>
> struct _GdkEventButton
> {
> GdkEventType type;
> GdkWindow *window;
> gint8 send_event;
> guint32 time;
> gdouble x;
> gdouble y;
> gdouble pressure;
> gdouble xtilt;
> gdouble ytilt;
> guint state;
> guint button;
> GdkInputSource source;
> guint32 deviceid;
> gdouble x_root, y_root;
> };
>
> In 1.3.x it changed to
>
> struct _GdkEventButton
> {
> GdkEventType type;
> GdkWindow *window;
> gint8 send_event;
> guint32 time;
> gdouble x;
> gdouble y;
> gdouble *axes;
> guint state;
> guint button;
> GdkDevice *device;
> gdouble x_root, y_root;
> };
>
> The pressure, xtilt and ytilt fields got pushed into the GdkDevice struct
They are part of of the axes[] field now.
> (along with a new wheel field) and are extracted using gdk_event_get_axis().
> I can't figure out what became of the deviceid field, however. It seems to
> have disappeared without a trace. Any hints?
It was replaced by the GdkDevice *.
The deviceid was a way of uniquely identifying a device. That is
now done with the GdkDevice structure.
http://www.gtk.org/~otaylor/gtk/2.0/xinput.html
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]