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

typedef enum KPADPlayMode {
} KPADPlayMode;

void KPADSetAccPlayMode( s32 chan, KPADPlayMode mode );


chan One of the WPAD_CHANn values.
mode The play mode. One of KPAD_PLAY_MODE_*.

Return Values



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

KPAD_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. KPAD_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 the smooth change in values. With KPAD_PLAY_MODE_LOOSE, making the play radius too large would lead to the behavior that provides the appearance of weaker sensitivity. To avoid this, consider using KPAD_PLAY_MODE_TIGHT.

The default is KPAD_PLAY_MODE_TIGHT. The default value is used on the Cafe Menu as well. Set these values to their defaults to match Cafe Menu behavior.

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


Revision History

2013/05/08 Automated cleanup pass.
2012/01/27 Changed default to KPAD_PLAY_MODE_TIGHT.
2008/07/08 Added information on settings in the Cafe Menu.
2007/07/12 Initial version.