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>KBDSetDetachCallback</title>
10</head>
11
12<body>
13
14<h1>KBDSetDetachCallback</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/kbd.h&gt;</code></pre>
21  </dd>
22<dd><pre><code>KBDDevCallbackF KBDSetDetachCallback (KBDDevCallbackF fn);</code></pre>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27
28<TABLE border="1" cellpadding="3" cellspacing="0.1">
29  <tr>
30<TD width="120" bgcolor="#ffffe8"><code><em><strong>fn</strong></em></code></TD>
31<TD width="520">Pointer to a function to callback when a USB keyboard device is physically detached.</TD>
32    </tr>
33</TABLE>
34
35<h2>Return Values</h2>
36
37<TABLE border="1" cellpadding="3" cellspacing="0.1">
38  <tr>
39<TD width="120" bgcolor="#ffffe8"><code><em><strong>KBDDevCallbackF</strong></em></code></TD>
40<TD width="520">A pointer to the previous keyboard device detach callback.</TD>
41    </tr>
42</TABLE>
43
44<h2>Description</h2>
45
46<p>Registers a function with the USB keyboard library to call whenever a USB keyboard device is detached. The function pointer typedef <code>KBDDevCallbackF</code> is defined as follows.</p>
47
48
49
50<p><code>typedef struct _KBDDevEvent { <br> &nbsp; KBDChannel channel;<br> } KBDDevEvent;</code></p>
51
52
53
54<p><code>typedef void (*KBDDevCallbackF) (KBDDevEvent*);</code></p>
55
56
57
58<p>The function <code>fn</code> is called with pointer to a <code>KBDDevEvent</code> structure that contains the channel (keyboard) that was detached.</p>
59
60
61
62<h2>See Also</h2>
63
64<p><a href="list.html">Keyboard API Function List</a></p>
65
66<h2>Revision History</h2><p></p>
67
68<P>2007/03/19 Initial version.</p>
69
70</BODY>
71</HTML>