Article View: comp.sys.amiga.tech
Article #14028Re: Reading the keyboard without a window.
From: Bruce Dawson
Date: Sat, 03 Mar 1990 16:49
Date: Sat, 03 Mar 1990 16:49
22 lines
1264 bytes
1264 bytes
> alex writes:
>
>
> clearkbd() is called to clear out all unused keystrokes from the keyboard
> buffer before getting the next keystroke. The effect of this is that
> auto-repeats will only go as fast as my program gets characters.
>
> --
> /// Alex Matulich
> /// Unicorn Research Corp, 4621 N Landmark Dr, Orlando, FL 32817
> \\\/// alex@bilver.UUCP ...uunet!tarpit!bilver!alex
> \XX/ From BitNet use: bilver!alex@uunet.uu.net
It wasn't clear from your code fragment, does your routine clear out ALL
unused keystrokes from the keyboard buffer, or does it only clear out those
produced by auto-repeat? This is an important distinction. If I hit a key ten
times, I want the action repeated exactly ten times, even if the program can't
keep up. But, if I hold down the key I do want the program to stop as soon as
I release it.
.Bruce.
Technical Details
Message-ID:
<1249@mindlink.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!van-bc!rsoft!mindlink!a464Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!van-bc!rsoft!mindlink!a464 From: a464@mindlink.UUCP (Bruce Dawson) Newsgroups: comp.sys.amiga.tech Subject: Re: Reading the keyboard without a window. Message-ID: <1249@mindlink.UUCP> Date: 3 Mar 90 16:49:14 GMT Organization: MIND LINK! - British Columbia, Canada Lines: 22