NormalizeExtraStickWithScale

nn::hid::CTR::ExtraPadReader::NormalizeExtraStickWithScale Member Function

Syntax

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

Parameters

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 and returns the Right Circle Pad values obtained by the Read and ReadLatest functions to floating-point values between -1.0 and 1.0. Includes a sensitivity correction feature.

Includes special internal processing to adjust sensitivity. For details, see the description of the SetNormalizeExtraStickScaleSettings function.

Revision History

2011/10/06
Initial version.

CONFIDENTIAL