nn::hid::CTR::AccelerometerReader::SetSensitivity Member Function

Syntax

void SetSensitivity(
     s16 play,
     s16 sensitivity
);

Arguments

Name Description
in play The play. Specify a value from 0 to nn::hid::CTR::MAX_OF_ACCELEROMETER_PLAY, inclusive.
in sensitivity Indicates the sensitivity.0 ~ Specify a value in the range from 0 to nn::hid::CTR::MAX_OF_ACCELEROMETER_SENSITIVITY, inclusive. If you specify a value of 0, response ceases completely. If you specify a value of nn::hid::CTR::MAX_OF_ACCELEROMETER_SENSITIVITY, response is based directly on the values obtained from the device.

Return Values

None.

Description

Sets the sensitivity and play tolerance for the change in acceleration between samples.

By default, play is set to 0 and sensitivity is set to nn::hid::CTR::MAX_OF_ACCELEROMETER_SENSITIVITY.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL