CT_KBDSPEED

 KBDSPEED()
 Sets keyboard auto repeat speed
------------------------------------------------------------------------------
 Syntax

     KBDSPEED(<nDelay>,<nFrequency>) --> lAmended

     Warning!  Use AT keyboards only.

 Arguments

     <nDelay>  Designates the amount of delay before you begin auto
     repeat.  Possible values are from 0 to 3.  The default value is 1.

     <nFrequency>  Designates the number of times a character repeats per
     second.  Possible values are from 0 to 31.  The default value is 12.

 Returns

     KBDSPEED() returns .T. when a new repeat rate is set successfully.

 Description

     KBDSPEED() sets the auto repeat rate for AT keyboards.  Both the time
     delay and repeat rate for auto repeat can be set.  The table below
     provides the values, their corresponding times, and repeat rates:

     Table 13-3: Auto Repeat Time Delay
     ------------------------------------------------------------------------
     <nDelay>     Delay Time
     ------------------------------------------------------------------------
     0            250 millisecond
     1            500 millisecond
     2            750 millisecond
     3            1000 millisecond
     ------------------------------------------------------------------------

     Table 13-4: Repeat Rate for Depressed Keys
     ------------------------------------------------------------------------
     <nFrequency>     Repeat Rate
     ------------------------------------------------------------------------
     0                30 characters per second
     12               10 characters per second
     31               2 characters per second
     ------------------------------------------------------------------------

 Note

     .  It is best to determine valid values experimentally.

 Example

     The quickest setting possible:

     IF KBDTYPE() >0         // Only possible for AT's
        KBDSPEED(0, 0)
     ENDIF

See Also: KBDTYPE() KBDSTAT() KBDDISABLE() DSETKBIOS()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.