Re: key_press_event




> 
> Hello everybody, I would like to know wich key has been pressed when a
key_press_event happen. Do you know how can I do that ??
> 

key_press_hook_function (GtkWidget  *widget,GdkEventKey *event)
{
  look at (event->keyval)
}

To understand the codes:
vi /usr/include/gtk-2.0/gdk/gdkkeysyms.h
                                     Jose Hevia




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