[Gtk-sharp-list] Patch for XInput events in GTK#.
"Manuel V. Santos López"
mvsl@telefonica.net
Sun, 08 Aug 2004 22:25:08 +0200
This is a multi-part message in MIME format.
--------------060007030207050709020600
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
Attached to this mail there is a patch that allows a GTK# application
to retrive XInput events from GTK#.
This patch targets bug 62538
The changes made are:
1. Gdk.Device class
1.1 Added Name property (read-only).
1.2 Added Source property (read-write).
1.3 Added Mode property (read-only).
1.4 Added HasCursor property (read-only).
1.5 Added NumAxes property (read-only).
1.6 Added GetDeviceAxis method.
1.7 Added GetDeviceKey method.
1.8 Modified signature of GetAxis method. (It was unusable).
2. Gdk.DeviceAxis Class:
2.1 Modified ToString() method to add DeviceAxis.Use to the string.
3. Gdk.EventButton and Gdk.EventMotion Classes:
3.1 Modified implementation of Axes getter to return all the axes.
4. Gtk.InputDialog Class:
4.1 Added getter to the CloseButton.
4.2 Added getter to the SaveButton.
5. New sample: scribble-xinput.exe.
It's a pressure aware version of scribble.
This changes doesn't break the previous version of the API.
The only changed signature is at 1.8, but I don't think this
matters because it was wrong and unusable (the axes parameter
was tagged as an "out" parameter. It must be a doubles array
input parameter as in the patch).
I would like someone to review this patch and point me
any corrections before submitting.
I don't know if this is the correct list for this task.
Thanks in advance,
Manuel V. Santos.
--------------060007030207050709020600
Content-Type: application/x-gzip;
name="gtk-sharp-patch.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="gtk-sharp-patch.tar.gz"
H4sIAI+GFkEAA+08bXvaOrL9Cr9Cm3uec0gCBvPakJPekjRNs5u0OSFtT29vnzwOFuCNsVm/
JOHc7X/fGUm25TcgDaVn96KmYEujmdHMaGYk2Yy824o71pxp9dl3K7Vas9ZpteC7pnZaNfyu
qc0m+xblmVpTa61mp9luNZ7VVLXd7jwjre/HUlR819McQp5N7lxzPhx13HUwtN4yCvU/0m+/
kw08Qv91taOC/uvNemuj/3WUuP5Hpk9X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