Re: reading keyboard
- From: Paul Davis <paul linuxaudiosystems com>
- To: Shiraz Baig <shiraz_baig yahoo com>
- Cc: gtk-list gnome org
- Subject: Re: reading keyboard
- Date: Sun, 18 May 2003 09:08:11 -0400
>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
>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.
] [Thread Prev