[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: key release events
- From: Ray Haleblian <rayh infohouse com>
- To: Havoc Pennington <rhp zirx pair com>
- CC: rayh kwcc com, gtk-app-devel-list redhat com
- Subject: Re: key release events
- Date: Sat, 05 Jun 1999 17:10:48 -0500
Havoc Pennington wrote:
> On Tue, 1 Jun 1999, Ray Haleblian wrote:
> > i'm new to GTK. i modified the hello world example to examine how key
> > presses and releases are handled. however, i don't appear to get key
> > release events. i there a special initialization? i use
> >
>
> Call gtk_widget_add_events(window, GDK_KEY_RELEASE_MASK);
>
> Havoc
thank you, this works. it appears to me that keyboard autorepeat produces
a
keydown event and then a keyup event. i think this incorrect; autorepeat
should produce only a keydown event. i care because the MIDI controller
i'm working on would like to know what keys on the keyboard are being held
down.
other implementations of the app which talk directly to the keyboard
hardware
or use svgalib work in this way.
is there an argument for the current behaviour? or a way to alter it? for
example,
suppressing autorepeat? (time now to RTFM)
cheers, rayh
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]