nn::hid::CTR::AccelerometerReader::SetOffset Member Function
void SetOffset(
s16 x,
s16 y,
s16 z
);
| Name | Description | |
|---|---|---|
| in | x | The x-component of the offset value. |
| in | y | The y-component of the offset value. |
| in | z | The z-component of the offset value. |
Sets the accelerometer offset value.
When offset is enabled, the specified values are subtracted from the sampling data before it is output.
By default all components are 0.
CONFIDENTIAL