nn::hid::CTR::PadReader::SetStickClamp Member Function
void SetStickClamp(
s16 min,
s16 max
);
| Name | Description | |
|---|---|---|
| in | min | Lower limit for clamping. By default, this is nn::hid::CTR::MIN_OF_STICK_CLAMP_MODE_CIRCLE for circular clamping and nn::hid::CTR::MIN_OF_STICK_CLAMP_MODE_CROSS for cross-shaped clamping. |
| in | max | Upper limit for clamping. The default value is nn::hid::CTR::LIMIT_OF_STICK_CLAMP_MAX. |
Sets the clamp values for the Circle Pad.
For max, specify a value less than or equal to nn::hid::CTR::LIMIT_OF_STICK_CLAMP_MAX. The values that can be specified for min depend on the clamp mode that was set by the SetStickClampMode function. For circular clamping, specify a value of nn::hid::CTR::MIN_OF_STICK_CLAMP_MODE_CIRCLE or greater. For cross-shaped clamping, specify a value of nn::hid::CTR::MIN_OF_STICK_CLAMP_MODE_CROSS or greater. The min value for minimal clamping is fixed at nn::hid::CTR::MIN_OF_STICK_CLAMP_MODE_CIRCLE, and any set value is ignored. If a value that exceeds one of these limits is specified, it is clamped to the limit before being applied. The values for max and min are managed separately for each clamp mode.
CONFIDENTIAL