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 http-equiv="Content-Style-Type" content="text/css">
7
8    <LINK rel="stylesheet" href="./css/revolution.css" type="text/css">
9
10    <TITLE>HBMControllerData Structure</TITLE>
11<style type="text/css" media="all">
12<!--
13@import url("css/hbm_common.css");
14-->
15</style>
16</HEAD>
17<BODY>
18
19
20<H1>HBMControllerData Structure</H1>
21
22<H2>Syntax</H2>
23<dl><dd><pre><code>
24#include &lt;revolution/hbm.h&gt;
25
26/* Wii Remote information */
27typedef struct
28{
29    KPADStatus* kpad;
30    Vec2        pos;
31    u32         use_devtype;
32} HBMKPadData;
33
34/* Wii Remote data structure passed to the HOME Object. */
35typedef struct
36{
37    HBMKPadData wiiCon[WPAD_MAX_CONTROLLERS];
38} HBMControllerData;
39</code></pre></dd></dl>
40
41<H2>Members</H2>
42<TABLE class="arguments">
43    <TR>
44        <TH>kpad</TH>
45        <TD>Sets the Wii Remote information read by <CODE>KPADRead</CODE>.</TD>
46    </TR>
47    <TR>
48        <TH>pos</TH>
49        <TD>Sets the cursor's display position.</TD>
50    </TR>
51    <TR>
52        <TH>use_devtype</TH>
53        <TD>Normally, it is set to the device type received by <CODE>WPADProbe</CODE>. However, if you want to disable input from unsupported devices, set it to <CODE>WPAD_DEV_CORE</CODE> when a disabled device is input.</TD>
54    </TR>
55</TABLE>
56
57<H2>Description</H2>
58<P>
59Stores Wii Remote input information and sets it in an argument to the <A href="hbm_HBMCalc.html"><CODE>HBMCalc</CODE></A> function. The HBM library processes and draws buttons based on this input information.
60</P>
61
62<H2>See Also</H2>
63<p>
64<code><A href="hbm_HBMCalc.html">HBMCalc</A></code>
65</P>
66
67<H2>Revision History</H2>
68<DL class="history">
69    <DT>2007/12/21<DD>Revised the description of <CODE>use_devtype</CODE>.
70    <DT>2007/11/06<DD>Revised explanation of the header and <CODE>use_devtype</CODE>.
71    <DT>2006/10/02<DD>Added the use_devtype member.
72    <DT>2006/09/25<DD>Initial version.
73</DL>
74
75<hr><p>CONFIDENTIAL</p></body>
76</HTML>