•  Back 
  •  XBIOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileKbrate()                                                              XBIOS

Syntax

WORD Kbrate( delay, rate )
WORD delay, rate;

Function      Kbrate() reads/modifies the keyboard repeat/delay rate.

Opcode        35 (0x23)

Availability  All TOS versions.

Parameters    delay specifies the amount of time (in 50Hz ticks) before
              a key begins repeating. rate indicates the amount of time
              between repeats (in 50Hz ticks). A parameter of KB_INQUIRE
              (1) for either of these values leaves the value unchanged.

Binding       move.w   rate,-(sp)
              move.w   delay,-(sp)
              move.w   #$23,-(sp)
              trap     #14
              addq.l   #6,sp

Return Value  Kbrate() returns a WORD with the low byte being the old
              value for rate and the high byte being the old value for
              delay.