NormalizeStick

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

Syntax

f32 NormalizeStick(
     s16 x
);

Parameters

Name Description
in x Circle Pad value.

Return Values

Normalized value.

Description

Normalizes and returns the Circle Pad values obtained by the Read and ReadLatest functions to floating-point values between -1.0 and 1.0.

This assumes that the difference between the upper and lower clamp bounds is 1.0.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL