KPADEnableAimingMode

Syntax

#include <cafe/pads/kpad/kpad.h>

void KPADEnableAimingMode( s32 chan );

Parameters

chan One of the WPAD_CHANn values.

Return Values

None.

Description

Instructs the KPAD library to calculate the coordinates that are closest to the spot on the TV screen that is being pointed at by the Wii remote. If this function is called when the Wii remote is aimed at the center of the TV screen, it will return the coordinates close to (0, 0). (This is now the default.)

This function is now called automatically by the KPADInit function.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Multiple Cores Do not call this function from more than one Core.

See Also

KPADIsEnableAimingMode
KPADDisableAimingMode
KPADSetSensorHeight
KPADGetProjectionPos

Revision History

2013-05-08 Automated cleanup pass.
2008-10-03 Added KPADIsEnableAimingMode to See Also.
2007-01-15 Revised such that the coordinate correction feature is enabled by default.
2006-09-07 Initial version.


CONFIDENTIAL