HBMControllerData Structure

Syntax


#include <revolution/hbm.h>

/* Wii Remote information */
typedef struct
{
    KPADStatus* kpad;
    Vec2        pos;
    u32         use_devtype;
} HBMKPadData;

/* Wii Remote data structure passed to the HOME Object. */
typedef struct
{
    HBMKPadData wiiCon[WPAD_MAX_CONTROLLERS];
} HBMControllerData;

Members

kpad Sets the Wii Remote information read by KPADRead.
pos Sets the cursor's display position.
use_devtype Normally, it is set to the device type received by WPADProbe. However, if you want to disable input from unsupported devices, set it to WPAD_DEV_CORE when a disabled device is input.

Description

Stores Wii Remote input information and sets it in an argument to the HBMCalc function. The HBM library processes and draws buttons based on this input information.

See Also

HBMCalc

Revision History

2007/12/21
Revised the description of use_devtype.
2007/11/06
Revised explanation of the header and use_devtype.
2006/10/02
Added the use_devtype member.
2006/09/25
Initial version.

CONFIDENTIAL