Non-deprecated example of decoding key strokes needed



Hi,

I'm porting an application to gtk+ that reads key
strokes. To interpret these key strokes the "right"
way, the documentation recommends using
gdk_unicode_to_keyval(). I have looked for, but not
found, sample code that takes a key press event
(struct GdkEventKey) and determines which key was
pressed by calling gdk_unicode_to_keyval().

Can anyone reply with a simple example of this?

Thanks much!

David Levner 


                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]