Re: reading keyboard



>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



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