nn::hid::CTR::PadReader::NormalizeStick Member Function

Syntax

f32 NormalizeStick(
     s16 x
);

Arguments

Name Description
in x Value of the analog stick.

Return Values

Normalized value.

Description

Normalizes analog stick values, obtained using Read and ReadLatest, to floating-point values between -1.0 and 1.0.

It assumes that the difference between the upper and lower bounds of the clamp 1.0.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL