1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9<title>KBDSetRepeat</title> 10</head> 11 12<body> 13 14<h1>KBDSetRepeat</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/kbd.h> 19 20KBDEc KBDSetRepeat(KBDChannel ch, u16 delay, u16 interval); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>ch</TH> 27<TD>Keyboard channel to set.</TD> 28 </tr> 29 <tr> 30<TH>delay</TH> 31<TD>Number of milliseconds to use as the repeat delay value.</TD> 32 </tr> 33 <tr> 34<TH>interval</TH> 35<TD>Number of milliseconds to use as the repeat rate interval value.</TD> 36 </tr> 37</TABLE> 38 39<h2>Return Values</h2> 40<TABLE class="arguments" border="1" > 41 <tr> 42<TH>KBDEc</TH> 43<TD>Keyboard error code.<br><code>KBD_SUCCESS</code> if the call was successful.<br><code>KBD_ERR_NOT_INITIALIZED</code> if the library was not initialized.<br><code>KBD_ERR_BAD_VALUE</code> if <SPAN class="argument">ch</SPAN> was out of range.<br> 44 </TD> 45 </tr> 46</TABLE> 47 48<h2>Description</h2> 49<p>Sets the current repeat rate values of the USB keyboard on channel <SPAN class="argument">ch</SPAN>. If <SPAN class="argument">delay</SPAN> is 0, keyboard repeat is disabled. Otherwise, <SPAN class="argument">delay</SPAN> is the time (in milliseconds) before repeating a key press. <SPAN class="argument">interval</SPAN> is the time in milliseconds between repeated key actions. The recommended values are <SPAN class="argument">delay</SPAN> = 500 and <SPAN class="argument">interval</SPAN> = 33. By default, keyboard repeat is enabled and the suggested values are used. </p> 50 51<h2>See Also</h2> 52<P class="reference"> 53<a href="list.html">Keyboard API Function List</a> 54</p> 55 56<h2>Revision History</h2> 57<P> 582007/03/27 Initial version.<br> 59</p> 60 61<hr><p>CONFIDENTIAL</p></body> 62</HTML>