Re: keyboard signals

y g a écrit :


I want to have keys of keyboard mapped to certain things. To make it
clear what I am exactry trying to do is while you keep a key pressed
down then you move forward and you stop when it is released.
Accelerators won't do.... Can someone give me some directions?

gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

Connect a callback to the key_press_event signal . Then consult the GdkEventKey* event parameter to know which key was typed.

You may be also interested in key_release_event signal .

Yann Normand

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