[comp.sys.ibm.pc] slowing down the keyboard

jlh@loral.UUCP (Physically Pffft) (11/19/88)

In my wonderful little program I can move a pair of cursors around on a
graphics display.  Natch, if you hold down the key the cursor keeps on
moving.  The only problem is the cursors can't keep up with the keyboard
interrupt, even though they are plenty fast in themselves.  The result is a
cursor moving merrily along for awhile, then stopping with the keyboard 
beeping at me.  Is there some way I can slow down the keyboard interrupt,
or otherwise get around this problem?  I'm on an IBM AT running dos 3.3.


								jim


-- 
Jim Harkins		jlh@loral.cts.com
Loral Instrumentation, San Diego

posert@bonnie.ics.uci.edu (Bob Posert) (12/01/88)

In article <1871@loral.UUCP> Jim Harkins writes:
>[...] The only problem is the cursors can't keep up with the keyboard
>interrupt, even though they are plenty fast in themselves.  The result is a
>cursor moving merrily along for awhile, then stopping with the keyboard 
>beeping at me.  Is there some way I can slow down the keyboard interrupt,
>or otherwise get around this problem?  I'm on an IBM AT running dos 3.3.
>[...]
>Jim Harkins		jlh@loral.cts.com

My mail to you at jlh@loral.cts.com bounced, so I'm posting:

Changing the typeamatic rate may fix your problem; here's a program to
do that, along with the documentation, such as it is.  It probably came
from PC-Tech magazine, so you could look up the back issue if you want
more info.  I think the repeat rate is how often the key repeats, and
the delay rate is how long you hold the key down before it starts to repeat.

SETKEY.COM
    "Rev Up the AT Keyboard"
    Kevin M. Crenshaw
    May 1985, page 39

    Controls the typamatic repeat rate of the AT keyboard.
    Command line:  SETKEY repeat-rate delay-rate
             repeat-rate values:  A..Z
             delay-rate values:   1..4

and here's the uuencoded file:

begin 644 setkey.com
MOH$`,]NL/"!T^W(F_L@DWRQ`<P-.ZP8\'W<LAL.L/"!T^W(.+#%R'SP#=QNQ
M!=+@"MBP\^A8`.,)AL/H40#C`LT@NE`!ZP.Z80&T"<TAS2!(87)D=V%R92!E
M<G)O<@T*)%9A;&ED('!A<F%M971E<G,@87)E("!!+5H@(&9O;&QO=V5D(&)Y
M("`Q+30-"B3ZAL0SR>1DJ`+@^N,@AL3F8#/)Y&2H`N#ZXQ(SR>1DJ`'A^N,(
*Y&`\^G0",\G[P\0S
`
end

Sorry for posting a binary to a non-binary group, but it was
very short.

--Bob
--
Bob Posert
I'm: posert@bonnie.ics.uci.edu or {sdcsvax|ucbvax}!ucivax!bonnie!posert 

dalegass@dalcs.UUCP (Dale Gass) (12/02/88)

In article <1871@loral.UUCP> Jim Harkins writes:
>[...] The only problem is the cursors can't keep up with the keyboard
>interrupt, even though they are plenty fast in themselves.  The result is a
>cursor moving merrily along for awhile, then stopping with the keyboard 
>beeping at me.  Is there some way I can slow down the keyboard interrupt,
>or otherwise get around this problem?  I'm on an IBM AT running dos 3.3.

You might try the latest version of Cruise control.  It handles repeats
very nicely: when you hold down a key and up the application can't keep 
up with it, cruise control automatically slows down the repeat rate,
and the instant you release that repeating key, it flushes the buffer 
(this feature is called anti-skid braking, and is great for any application 
which is too slow to keep up with the repeat rate).

-dalegass@dalcsug.uucp
{watmath|uunet|utai}|dalcs|dalcsug|dalegass