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>KBDLedEvent structure</title> 10</head> 11 12<body> 13 14<h1>KBDLedEvent structure</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction">#include <revolution/kbd/kbd.h> 18 19typedef struct _KBDLedEvent { 20 KBDChannel channel; 21 KBDLedState leds; 22 KBDEc rc; 23} KBDLedEvent; 24</pre></dd></dl> 25 26<H2>Description</H2> 27<p> 28The <code>KBDLedEvent</code> structure contains the keyboard channel, LED state, and a return code from the callback associated with <a href="KBDSetLedsAsync.html"><code>KBDSetLedsAsync</code></a>. 29</p> 30<p> 31When the <a href="KBDSetLedsAsync.html"><code>KBDSetLedsAsync</code></a> function completes, it calls the callback that was passed to it with a pointer to this structure, as well as a pointer to the user-supplied argument. 32</p> 33<p> 34The <SPAN class="argument">rc</SPAN> returned in the callback is either <code>KBD_SUCCESS</code> or <code>KBD_BUSY</code>. The return code <code>KBD_SUCCESS</code> means that the LED command was successfully sent to the keyboard. <code>KBD_ERR_BUSY</code> means that transmission of the command failed. 35</p> 36 37<h2>See Also</h2> 38<P class="reference"> 39<a href="list.html">Keyboard Functions</a>, 40<a href="KBDSetLedsAsync.html">KBDSetLedsAsync</a> 41</p> 42 43<H2>Revision History</H2> 44<p> 452007/03/20 Initial version.<br> 46</p> 47 48<hr><p>CONFIDENTIAL</p></body> 49</HTML>