nn::hid::CTR::PadReader Classclass PadReader : private nn::util::NonCopyable< PadReader >
A class that reads sampling data from the gamepad (the gameplay buttons and the Circle Pad).
The gamepad is sampled every 4 milliseconds.
StickClampMode
|
Enumerated type that indicates the Circle Pad clamp mode set by the SetStickClampMode function. |
|---|
| S |
MAX_READ_NUM
|
const s8 | The maximum number of data samples that can be read. |
|---|
PadReader
|
Constructor. | |
|---|---|---|
~PadReader
|
Destructor. | |
Read
|
Loads sampling data from the gamepad, starting with the most recent samples. Does not load any data that has been previously loaded. | |
ReadLatest
|
Loads the most recent sampling data from the gamepad. Unlike the nn::hid::CTR::PadReader::Read function, this function can load the same sampling data more than once. |
|
SetStickClamp
|
Sets the clamp values for the Circle Pad. | |
GetStickClamp
|
Gets the clamp values of the current clamp mode for the Circle Pad. | |
GetStickClampMode
|
Gets the clamp mode for the Circle Pad. | |
SetStickClampMode
|
Sets the clamp mode for the Circle Pad. | |
NormalizeStick
|
Normalizes and returns the Circle Pad values obtained by the Read and ReadLatest functions to floating-point values between -1.0 and 1.0. |
|
NormalizeStickWithScale
|
Normalizes and returns the 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. |
|
SetNormalizeStickScaleSettings
|
Configures the NormalizeStickWithScale settings. |
|
GetNormalizeStickScaleSettings
|
Gets the NormalizeStickWithScale settings. |
nn::util::NonCopyable
nn::hid::CTR::PadReader
NormalizeStickWithScale, SetNormalizeStickScaleSettings, GetNormalizeStickScaleSettings.
CONFIDENTIAL