KPADSetPosParam

Syntax

#include <revolution/kpad.h>

void KPADSetPosParam( s32 chan, f32 play_radius, f32 sensitivity ) ;

Arguments

chan One of the WPAD_CHANn values.
play_radius Play radius. Specify a value ≥ 0.
sensitivity Sensitivity. Specify a value from 0 to 1. When set to 0, there is no response; when set to 1, the values obtained from the device are used without modification.

Return Values

None.

Description

This function adjusts the play radius and sensitivity for the coordinates where the Wii Remote is pointing. A larger play radius can reduce the fluctuation of values when the Wii Remote is not moving, a lower sensitivity - when the controller is moving. Movement within the play radius is not eliminated completely; however, as you approach the limit of the play radius, the amount of movement becomes extremely small. If the play radius is set to 0 and sensitivity to 1, the values obtained from the device are used without modification.

The default values for play radius and sensitivity are 0 and 1, respectively. In the Wii Menu the play radius and sensitivity are set to 0.05 and 1.0. Use these values to make the Wii Remote's behavior match its behavior in the Wii Menu.

See Also

KPADGetPosParam

Revision History

2008/03/17 Added the settings used in the Wii Menu.
2007/04/25 Added the default values. Added KPADGetPosParam to See Also.
2006/06/19 Changed the product name from tentative to official.
2006/03/01 Initial version.


CONFIDENTIAL