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 Slide 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 was 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 Slide Pad.
GetStickClamp Gets the clamp values of the current clamp mode for the Slide Pad.
GetStickClampMode Gets the clamp mode of the Slide Pad.
SetStickClampMode Sets the clamp mode for the Slide 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].

Class Hierarchy

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

Revision History

2010/01/07
Initial version.

CONFIDENTIAL