Re: reading keyboard



On Sun, May 18, 2003 at 09:22:04PM -0700, Shiraz Baig wrote:
> 
> But isn't there a routine to convert it to ASCII
> rather than me writing it afresh. I am sure there must
> be many who would be requiring it. 

You want event->string in the keypress event probably.

Note that this is broken for any program that will be
internationalized; if you want to allow input of non-English, you need
to use input methods (see GtkEntry source code for an example).

Havoc



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