nn::hid::CTR::PadReader::Read Member Function

Syntax

void Read(
     PadStatus * pBufs,
     s32 * pReadLen,
     s32 bufLen
);

Arguments

Name Description
out pBufs Receives sampling data, starting with the newest data.
out pReadLen Number of data samples that were read.
in bufLen Specifies the number of data samples to read into pBufs.

Return Values

None.

Description

Reads sampling data from the gamepad, starting with the latest samples. Any previously loaded data is not read.

Use nn::hid::CTR::PadReader::SetStickClamp to set the appropriate play in the analog stick because input occurs even if it is not touched. Note that it is not possible to obtain the maximum value between the input coordinate and the neutral position of the analog stick. This is because some rounding occurs during clamping. Do not use this maximum value for thresholds or the like.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL