NormalizeExtraStick

nn::hid::CTR::ExtraPadReader::NormalizeExtraStick Member Function

Syntax

f32 NormalizeExtraStick(
     s16 x
);

Parameters

Name Description
in x Right Circle Pad value.

Return Values

Normalized value.

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.

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

Revision History

2011/10/06
Initial version.

CONFIDENTIAL