nn::hid::CTR::PadReader::NormalizeStickWithScale Member Function

Syntax

void NormalizeStickWithScale(
     f32 * normalized_x,
     f32 * normalized_y,
     s16 x,
     s16 y
);

Arguments

Name Description
out normalized_x Normalized x.
out normalized_y Normalized y.
in x Not-yet-normalized x.
in y Not-yet-normalized y.

Return Values

None.

Description

Normalizes the Slide Pad values obtained by the Read and ReadLatest functions to floating-point values in the range [-1.0, 1.0]. Includes a sensitivity correction feature.

Includes special internal processing to adjust sensitivity. For details, refer to the description of SetNormalizeStickScaleSettings.

Revision History

2010/10/15
Initial version.

CONFIDENTIAL