KPADEXStatus

Note: Member variables related to the standard GameCube controller are not supported in the KPAD library corresponding to UI Tool Version 4.

C Specification

#include <revolution/kpad.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 ;
    
  

Elements

fs.stick This is control stick data for the Nunchaku Unit. A maximum 1.0f circular clamp is applied.
fs.acc 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+.
fs.acc_value Indicates the magnitude of the acceleration (length along the x-, y-, and z-axes).
fs.acc_speed Indicates the change in acceleration (difference of the length along the x-, y-, and z-axes relative to the previous values).
gc.stick This is control stick data for the Nintendo GameCube standard controller. A maximum 1.0f circular clamp is applied.
gc.substick This is C stick data for the Nintendo GameCube standard controller. A maximum 1.0f circular clamp is applied.
gc.ltrigger This is L Button data for the Nintendo GameCube standard controller (where 0.0f ≦ ltrigger ≦ 1.0f).
gc.rtrigger This is R Button data for the Nintendo GameCube standard controller (where 0.0f ≦ rtrigger ≦ 1.0f).

Description

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.) When the programmer accesses the ex_status member of the KPADStatus structure, that access must be performed according to the value of dev_typ (WPAD_DEV_*) used to indicate the controller type.

See Also

Revision History

03/01/2006 Initial version.
06/19/2006 Changed tentative product name to official name. Added information about unsupported member variables.