FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

gdkkeysyms module in gtkD

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
mtwatkin



Joined: 22 Feb 2006
Posts: 7

PostPosted: Wed Aug 29, 2007 12:39 pm    Post subject: gdkkeysyms module in gtkD Reply with quote

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 Smile.
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Thu Aug 30, 2007 6:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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