[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: how to map particular keys
- From: Tristan Van Berkom <vantr touchtunes com>
- To: manu aradhya <manu_aradhya yahoo co in>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how to map particular keys
- Date: Wed, 10 Sep 2003 08:04:36 -0400
manu aradhya wrote:
>thanx for your reply,here is one simple program, in
>the called fuction how can i print the key which has
>pressed.how to make use of struct GdkEventKey. may be
>GdkEventKey.val is useful to me. how can i store the
>key pressed value in this element.
>
>
======== Change this =============
gint call_appln (GtkWidget *window2, GdkEventKey *event, gpointer data1) {
g_print (" ------- key pressed ---------\n");
}
============= to this ===========
gint
call_appln (GtkWidget *window2,
GdkEventKey *event,
gpointer data1)
{
g_print (" ------- key pressed [\'%c\'] ---------\n",
event->keyval);
}
Cheers,
-Tristan
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]