VPADSetAccPlayMode

Syntax

#include <cafe/vpad.h>

void VPADSetAccPlayMode(s32 chan, VPADPlayMode mode);

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.
mode The play mode. One of VPAD_PLAY_MODE_*.

Return Values

None.

Description

Sets the play mode when the play radius has been set for the acceleration sensor.

VPAD_PLAY_MODE_TIGHT is a newly added calculation mode. It makes a sharp distinction between the values that are and are not changed based on the boundary of the play radius; it does not change the values within the play range. VPAD_PLAY_MODE_LOOSE is the calculation mode that has been used until now. Even within the play range, the values will gradually start to move as they approach the boundary of the play radius, resulting in a smooth change in values. With VPAD_PLAY_MODE_LOOSE, making the play radius too large would lead to behavior that provides the appearance of weaker sensitivity. To avoid this, consider using VPAD_PLAY_MODE_TIGHT.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.
Multiple Cores Do not call this function from more than one Core.

See Also

VPADPlayMode
VPADGetAccPlayMode

Revision History

2015/03/03 Updated struct information.
2013/05/08 Automated cleanup pass.
2012/01/09 Changed the default setting.
2011/03/30 Initial version.


CONFIDENTIAL