nn::hid::CTR::PadReader Class

Syntax

class PadReader : private ADLFireWall::NonCopyable

Description

Class for loading sampling data from the game pad (which consists of the buttons and the Circle Pad).

The game pad is sampled every 4 ms.

Enumerated Types

StickClampMode Enumerated type that indicates the Slide Pad clamp mode set by the SetStickClampMode function.

Member Functions

PadReader Constructor.
~PadReader Destructor.
Read Loads sampling data from the game pad, 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 game pad. 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 of the Circle Pad.
SetStickClampMode Sets the clamp mode for the Circle Pad.
NormalizeStick Normalizes the Slide Pad values obtained by the Read and ReadLatest functions to floating-point values in the range [-1.0, 1.0].
NormalizeStickWithScale Normalizes the Slide Pad values obtained by the Read and ReadLatest functions to floating-point values in the range [-1.0, 1.0]. Includes a sensitivity correction feature.
SetNormalizeStickScaleSettings Configures the NormalizeStickWithScale settings.
GetNormalizeStickScaleSettings Gets the NormalizeStickWithScale settings.

Class Hierarchy

ADLFireWall::NonCopyable
  nn::hid::CTR::PadReader

Revision History

2010/10/15
Added NormalizeStickWithScale, SetNormalizeStickScaleSettings, GetNormalizeStickScaleSettings.
2010/01/07
Initial version.

CONFIDENTIAL