#include <revolution/kpadOld.h>
typedef union {
struct {
Vec2 stick ;
Vec acc ;
f32 acc_value ;
f32 acc_speed ;
} fs ;
struct {
Vec2 stick ;
Vec2 substick ;
f32 ltrigger ;
f32 rtrigger ;
} gc ;
} KPADEXStatus ;
| fs.stick | Control stick data for the Nunchuk. A maximum 1.0f circular clamp is applied. |
|---|---|
| fs.acc | 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+. |
| fs.acc_value | Acceleration magnitude (length along the x-, y-, and z-axes). |
| fs.acc_speed | Indicates the change in acceleration (difference in length along the x-, y-, and z-axes relative to the previous values). |
| gc.stick | Control Stick data for the Nintendo GameCube standard controller. A circular clamp of maximum length 1.0f is applied. |
| gc.substick | C Stick data for the Nintendo GameCube standard controller. A circular clamp of maximum length 1.0f is applied. |
| gc.ltrigger | L Button data for the Nintendo GameCube standard controller (where 0.0f ≦ ltrigger ≦ 1.0f). |
| gc.rtrigger | R Button data for the Nintendo GameCube standard controller (where 0.0f ≦ rtrigger ≦ 1.0f). |
This union maintains data about controller devices other than the Wii Remote. (As of 11/2005, the Nunchuk and Nintendo GameCube standard controller are supported.) Accessing of the KPADStatus structure's ex_status member must be done according to the value of dev_typ (WPAD_DEV_*) used to indicate the controller type.
None.
2006/10/25 Changed the name to KPADOld library, beginning with Revolution SDK 2.3.
2006/06/19 Changed the product name from tentative to official. Added information about unsupported member variables.
2006/03/01 Initial version.
CONFIDENTIAL