KPADSetPosPlayMode

Syntax

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

typedef enum KPADPlayMode {
    KPAD_PLAY_MODE_LOOSE = 0,
    KPAD_PLAY_MODE_TIGHT
} KPADPlayMode;

void KPADSetPosPlayMode( s32 chan, KPADPlayMode mode );

Parameters

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

Return Values

None.

Description

Sets the play mode when the play radius has been set for the position coordinates that are being pointed at.

KPAD_PLAY_MODE_TIGHT is a newly added calculation mode. It distinguishes sharply between whether the values are changed based on the boundary of the play radius, and 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 produce the appearance of weaker sensitivity. To avoid this, consider using KPAD_PLAY_MODE_TIGHT.

The default is KPAD_PLAY_MODE_LOOSE, which is the same setting that has been used until now. 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

KPADGetPosPlayMode

Revision History

2013/05/08 Automated cleanup pass.
2008/07/08 Added information on settings in the Cafe Menu.
2007/07/12 Initial version.


CONFIDENTIAL