nn::hid::CTR::PadReader::NormalizeStick Member Function
f32 NormalizeStick(
s16 x
);
| Name | Description | |
|---|---|---|
| in | x | Value of the analog stick. |
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.
CONFIDENTIAL