1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
7<title>KPADEXStatus</title>
8</head>
9
10<body>
11
12
13
14
15<h1>KPADEXStatus</h1>
16<font color="ff0000">Note: Member variables related to the standard GameCube controller are not supported in the KPAD library corresponding to UI Tool Version 4.</font>
17
18<H2>C Specification</H2>
19<DL>
20  <DD>
21<PRE><CODE>#include &lt;revolution/kpad.h&gt;</CODE></PRE>
22  <DD>
23  <PRE>
24    <CODE>
25typedef union {
26    struct {
27        Vec2    stick ;
28
29        Vec     acc ;
30        f32     acc_value ;
31        f32     acc_speed ;
32    } fs ;
33
34    struct {
35        Vec2    stick ;
36        Vec2    substick ;
37
38        f32     ltrigger ;
39        f32     rtrigger ;
40    } gc ;
41} KPADEXStatus ;
42    </CODE>
43  </PRE>
44</DL>
45
46<H2>Elements</H2>
47<TABLE border="1" cellpadding="3" cellspacing="0.1">
48  <TBODY>
49    <tr>
50<TD><code><b><i>fs.stick</i></b></code></TD>
51<TD>This is control stick data for the Nunchaku Unit. A maximum 1.0f circular clamp is applied.</TD>
52    </tr>
53    <tr>
54<TD><code><b><i>fs.acc</i></b></code></TD>
55<TD>This is accelerometer data. Note the coordinate system. Unlike the WPAD library, when the Nunchaku Unit is pointed toward the TV screen, the forward direction is Z+, the upward direction is Y+, and the direction to the right is X+.</TD>
56    </tr>
57    <tr>
58<TD><code><b><i>fs.acc_value</i></b></code></TD>
59<TD>Indicates the magnitude of the acceleration (length along the x-, y-, and z-axes).</TD>
60    </tr>
61    <tr>
62<TD><code><b><i>fs.acc_speed</i></b></code></TD>
63<TD>Indicates the change in acceleration (difference of the length along the x-, y-, and z-axes relative to the previous values).</TD>
64    </tr>
65    <tr>
66<TD><code><b><i>gc.stick</i></b></code></TD>
67<TD>This is control stick data for the Nintendo&nbsp;GameCube standard controller. A maximum 1.0f circular clamp is applied.</TD>
68    </tr>
69    <tr>
70<TD><code><b><i>gc.substick</i></b></code></TD>
71<TD>This is C stick data for the Nintendo&nbsp;GameCube standard controller. A maximum 1.0f circular clamp is applied.</TD>
72    </tr>
73    <tr>
74<TD><code><b><i>gc.ltrigger</i></b></code></TD>
75<TD>This is L Button data for the Nintendo&nbsp;GameCube standard controller (where 0.0f &#x2266; ltrigger &#x2266; 1.0f).</TD>
76    </tr>
77    <tr>
78<TD><code><b><i>gc.rtrigger</i></b></code></TD>
79<TD>This is R Button data for the Nintendo&nbsp;GameCube standard controller (where 0.0f &#x2266; rtrigger &#x2266; 1.0f).</TD>
80    </tr>
81  </TBODY>
82</TABLE>
83
84<h2>Description</h2>
85<p>
86This union maintains data about controller devices other than the Wii Remote. (As of 11/2005, the Nunchuk and Nintendo&nbsp;GameCube standard controller are supported.) When the programmer accesses the <code>ex_status</code> member of the <a href="KPADStatus.html"><code>KPADStatus</code></a> structure, that access must be performed according to the value of <code>dev_typ</code> <code>(WPAD_DEV_*)</code> used to indicate the controller type.
87</p>
88
89<H2>See Also</H2>
90
91<H2>Revision History</H2>
92<P>
9303/01/2006 Initial version. <BR>06/19/2006 Changed tentative product name to official name. Added information about unsupported member variables.<BR>
94</P>
95
96</BODY>
97</HTML>
98