View previous topic :: View next topic |
Author |
Message |
mtwatkin
Joined: 22 Feb 2006 Posts: 7
|
Posted: Wed Aug 29, 2007 12:39 pm Post subject: gdkkeysyms module in gtkD |
|
|
Perhaps I have missed it, but I don't see anywhere in the gtkD modules where the GDK key constants are defined (I am using gtkD pre4). I would like to see a module (probably gdk.KeySyms since its corresponding c header is <gdk/gdkkeysyms.h>) where the key constants are all defined. These key constants are needed to interpret the results from a Widget.addOnKeyPress / Widget.addOnKeyRelease signal.
I have made one which I am using in my project as a temporary replacement. If you would like, I can post it here (as a link, it is 1700 lines long), though it may be easier simply to copy/paste from the c header file. It takes about 15 seconds to make the whole file with only find/replace . |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Thu Aug 30, 2007 6:52 am Post subject: |
|
|
As far as I know, they aren't. I've been referencing them via they're values, such as the enter key's value is 65293. Just compare the event.keyval and you're good. Of course, using the references would be a lot better. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|