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 (KPADOld)</title>
8</head>
9
10<body>
11
12<h1>KPADEXStatus</h1>
13<font color="ff0000">Member variables related to the standard GameCube Controller are not supported in the KPAD library for UI Tool Version 4.</font>
14
15<H2>Syntax</H2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/kpadOld.h&gt;
18
19typedef union {
20    struct {
21        Vec2    stick ;
22
23        Vec     acc ;
24        f32     acc_value ;
25        f32     acc_speed ;
26    } fs ;
27
28    struct {
29        Vec2    stick ;
30        Vec2    substick ;
31
32        f32     ltrigger ;
33        f32     rtrigger ;
34    } gc ;
35} KPADEXStatus ;
36</pre></dd></dl>
37
38<H2>Elements</H2>
39<TABLE class="arguments" border="1" >
40  <TBODY>
41    <tr>
42<TH>fs.stick</TH>
43<TD>Control stick data for the Nunchuk. A maximum 1.0f circular clamp is applied.</TD>
44    </tr>
45    <tr>
46<TH>fs.acc</TH>
47<TD>Accelerometer data. Note the coordinate system. Unlike the WPAD library, when the Nunchuk is pointed toward the TV screen, the forward is Z+, upward is Y+, and rightward is X+.</TD>
48    </tr>
49    <tr>
50<TH>fs.acc_value</TH>
51<TD>Acceleration magnitude (length along the x-, y-, and z-axes).</TD>
52    </tr>
53    <tr>
54<TH>fs.acc_speed</TH>
55<TD>Indicates the change in acceleration (difference in length along the x-, y-, and z-axes relative to the previous values).</TD>
56    </tr>
57    <tr>
58<TH>gc.stick</TH>
59<TD>Control Stick data for the Nintendo&nbsp;GameCube standard controller. A circular clamp of maximum length 1.0f is applied.</TD>
60    </tr>
61    <tr>
62<TH>gc.substick</TH>
63<TD>C Stick data for the Nintendo&nbsp;GameCube standard controller. A circular clamp of maximum length 1.0f is applied.</TD>
64    </tr>
65    <tr>
66<TH>gc.ltrigger</TH>
67<TD>L Button data for the Nintendo GameCube standard controller (where 0.0f &#x2266; <SPAN class="argument">ltrigger</SPAN> &#x2266; 1.0f).</TD>
68    </tr>
69    <tr>
70<TH>gc.rtrigger</TH>
71<TD>R Button data for the Nintendo&nbsp;GameCube standard controller (where 0.0f &#x2266; <SPAN class="argument">rtrigger</SPAN> &#x2266; 1.0f).</TD>
72    </tr>
73  </TBODY>
74</TABLE>
75
76<h2>Description</h2>
77<p>
78This 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.) Accessing of the <a href="KPADStatus.html"><CODE>KPADStatus</CODE></a> structure's <SPAN class="argument">ex_status</SPAN> member must be done according to the value of <SPAN class="argument">dev_typ</SPAN> <code>(WPAD_DEV_*)</code> used to indicate the controller type.
79</p>
80
81<H2>See Also</H2>
82<P>None.</P>
83
84<H2>Revision History</H2>
85<P>
862006/10/25 Changed the name to KPADOld library, beginning with Revolution SDK 2.3.<br>2006/06/19 Changed the product name from tentative to official. Added information about unsupported member variables.<br>2006/03/01 Initial version.<br>
87</P>
88
89<hr><p>CONFIDENTIAL</p></body>
90</HTML>
91