Re: Key Listener



On Thu, 2010-05-06 at 09:47 -0700, Lyle Underwood wrote: 
> Key presses are handled with signals (which are like events, if you've
> used those before). Here's the appendix from the gtkmm book that's all
> about signals:
> 
> http://library.gnome.org/devel/gtkmm-tutorial/unstable/chapter-signals.html.en
> 
> Here's the API documentation which describes the precise interface for
> the key_pressed signal which is defined by the Gtk::Widget class (which
> most of the stuff in gtkmm derives from):
> 
> http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Widget.html#aa1a2371482cc55309d13c6f828e190f2
> 
> This is just a general description of signals and slots, in case you're
> not quite clear on them yet:
> 
> http://en.wikipedia.org/wiki/Signals_and_slots
> 
> And here is a tutorial on connecting to signals with libsigc++, which is
> the signal library gtkmm uses:
> 
> http://libsigc.sourceforge.net/libsigc2/docs/manual/html/ch02.html

Also, someone on this list had mentioned before that the list of key
definitions are found in the gdk/gdkkeysyms.h file of gtk+.  Further,
you might have to deal with the GdkEventKey structure:

http://library.gnome.org/devel/gdk/2.17/gdk-Event-Structures.html#GdkEventKey

-- 
José




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