KPADSetCrossStickEmulationParamsL/R

Syntax

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

void KPADSetCrossStickEmulationParamsL( s32 chan, f32 rot_deg, f32 xy_deg, f32 radius );
void KPADSetCrossStickEmulationParamsR( s32 chan, f32 rot_deg, f32 xy_deg, f32 radius );

Parameters

chan One of the WPAD_CHANn values.
rot_deg Rotation degree.
xy_deg Ranges for input.
radius The radius for disregarding input.

Return Values

None.

Description

This function can set internal parameters for handling analog stick input from URCC, Nunchuk and Classic Controller. rot_deg is the parameter for coordinate transform degree. The whole coordinate system moves counterclockwise by the rot_deg degree. xy_deg is used for setting ranges for regarding input as left/right/up/down. The rest of ranges are regarded as obliquely input. radius is used for a circle that disregards input from analog stick.

Do Not Call From

KPADSetCrossStickEmulationParamsL

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.

KPADSetCrossStickEmulationParamsR

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.

Revision History

2013/05/02 Initial version.


CONFIDENTIAL