[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: key release events
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-app-devel-list redhat com
- cc: rayh kwcc com
- Subject: Re: key release events
- Date: Sun, 6 Jun 1999 17:55:43 -0400 (EDT)
On Mon, 7 Jun 1999, Jason Stokes wrote:
>
> The Xlib function to turn off keyboard autorepeat is XAutoRepeatOff (Display*
> display). It doesn't appear that there's an equivalent in GDK.
>
Apps shouldn't call this function anyway; it's a global setting for the
entire display, so you'd break other apps. Users can configure this for
their own X server to behave the way they like.
For your MIDI app, I'd suggest treating a rapid sequence of key events the
same as a held-down key. It might take some experimentation to get the
definition of "rapid sequence" just right; if you get the time interval
right only machine-generated key repeat will be fast enough.
You can use the 'time' member of the key event to determine the relative
time between events (the time field has no absolute meaning, but the
difference between two time fields is significant).
Havoc
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]