nn::hid::CTR::PadReader::ReadLatest Member Function
bool ReadLatest(
PadStatus * pBuf
);
| Name | Description | |
|---|---|---|
| out | pBuf | Loads the sampling data. |
true: Successfully loaded.false: Could not be loaded. (The data can be loaded immediately following the first sampling that occurs after the system starts up or wakes up from sleep.) Reads the latest sampling data from the gamepad. Unlike nn::hid::CTR::PadReader::Read, it is possible to read the same sampling data.
The trigger and release values are generated with respect to the previous ReadLatest results. 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.
CONFIDENTIAL