Re: [gtkmm] emiting key release signals
- From: Tassos Bassoukos <abas aix meng auth gr>
- To: Peter Gasper <pgasper designadvantage com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] emiting key release signals
- Date: Mon, 18 Aug 2003 18:25:03 +0300
Peter Gasper wrote:
The reason I want to do this: I have some custom hardware with keys on
them (including a number pad and some non keyboard) and I'm trying to
figure out how to programmically emit key press/release signals. I'm not
spoofing events, I need to trigger them for actual key press/releases
that are just coming from a source other than the keyboard.
If I were to instead call the code triggered by on_key_release_event I
would have to go through the pain of manually figuring out who has the
focus and if they need to get these keys. And since some of these keys
are number keys like on the keyboard I would have to do the same thing
for normal widgets too. No, its much simpler just to tie my custom keys
into the program's normal event handling. If I can do that then
everything else will just work as normal.
Hello Peter,
Have you tried gdk_put_event ?
HTH,
Tassos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]