KPADGetCrossStickEmulationParamsL/R

Syntax

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

void KPADGetCrossStickEmulationParamsL( s32 chan, f32 *rot_deg,
                                        f32 *xy_deg, f32 *radius );
void KPADGetCrossStickEmulationParamsR( 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 get internal parameters for the handling of analog stick input from URCC, Nunchuk, and the Classic Controller.

rot_deg is the coordinate transform degree parameter. The complete coordinate system moves counterclockwise by the rot_deg degree. The xy_deg parameter is used for setting ranges with regards to input as left/right/up/down. The remaining ranges are regarded as oblique input. The radius parameter is used for a circle that disregards input from an analog stick.

Do Not Call From

KPADGetCrossStickEmulationParamsL

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.

KPADGetCrossStickEmulationParamsR

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