WPADControlDpd

C Specification

#include <revolution/wpad.h>

#define WPAD_CHAN0               0
#define WPAD_CHAN1               1
#define WPAD_CHAN2               2
#define WPAD_CHAN3               3

#define WPAD_DPD_OFF             0
#define WPAD_DPD_STD             1
#define WPAD_DPD_EXP             3
#define WPAD_DPD_FULL		 5

typedef void (*WPADCallback) ( s32 chan, s32 result );

s32 WPADControlDpd( s32 chan, u32 command, WPADCallback callback );

Arguments

chan One of WPAD_CHANn values.
pattern Either WPAD_DPD_OFF, WPAD_DPD_STD or WPAD_DPD_EXP.
callback Callback function to notify about the result. Notification processing is omitted if NULL is specified.

Return Values

Returns one of the following codes:

WPAD_ERR_NONE
WPAD_ERR_NO_CONTROLLER
WPAD_ERR_BUSY

Description

Controls the pointer for the specified Wii Remote.

This function registers the pointer control command in the WPAD library. The WPAD library processes registered commands when other commands are not running.

See Also

WPAD Functions
WPADIsDpdEnabled
WPADSetDataFormat

Revision History

08/15/2006 Described the DPD full mode.
2006/06/19 Initial version.


CONFIDENTIAL