nn::hid::CTR::DebugPadReader

nn::hid::CTR::DebugPadReader Class

Syntax

class DebugPadReader : private nn::util::NonCopyable< DebugPadReader >

Description

Class for loading sampling data from the game controller used for debugging (the debug pad).

The debug pad is sampled every 16 ms. The analog sticks are calibrated during system startup. You can also perform calibration by pressing the A Button, + Button, - Button, and Left on the +Control Pad simultaneously while the system is running.

Enumerated Types

StickClampMode Enumerated type that indicates the Circle Pad clamping modes that are set by the SetStickClampMode function.

Member Constants

S MAX_READ_NUM const s8 The maximum number of data samples that can be read.

Member Functions

DebugPadReader Constructor.
~DebugPadReader Destructor.
Read Reads sampling data from the debug pad in sequence, starting with the latest samples. Does not load any data that was previously loaded.
ReadLatest Reads the latest sampling data from the debug pad. Unlike the nn::hid::CTR::DebugPadReader::Read function, this function can read the same sampling data more than once.
GetStickClampMode Gets the clamp mode for the analog sticks.
SetStickClampMode Sets the clamp mode for the analog sticks.

Class Hierarchy

nn::util::NonCopyable
  nn::hid::CTR::DebugPadReader

Revision History

2010/06/14
Initial version.

CONFIDENTIAL