Re: reading keyboard



Yes, that is what I gathered. even->keyval gives me
the scan code. 

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. 
thanks
shiraz

--- Paul Davis <paul linuxaudiosystems com> wrote:
> >I am trying to read the keyboard input. I do not 
> >want to display the input.But I just want to be 
> >able to give it to my application so that 
> >I can send it on the network.
> >
> >I have used following methods, with no success in 
> >any.
> >
> >1)  I have used key_press_event, but it does 
> >not give me the key, which has been pressed.
> 
> yes it does, event->keyval. you have to compare it
> against the various
> #define's like GDK_a, GDK_Tab, and so forth. you're
> not in ASCII text
> land anymore. you've got access to a fundamentally
> un-processed
> physical input device, and its up to you (mostly)
> how to interpret
> what the user does.
> 
> --p


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



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