KPADSetGCStickClamp

Note: This function is not supported in the KPAD library corresponding to UI Tool Version 4.

C Specification

#include <revolution/kpadOld.h>
void KPADSetGCStickClamp ( s8 min, s8 max );

Arguments

min Lower limit for clamp.
max Upper limit for clamp.

Return Values

None.

Description

Sets the clamp to use on Control Stick data of the Nintendo GameCube controller. This function indicates that Nintendo GameCube controller Control Stick data be clamped to 0.0f if the absolute value of (PADStatus::stickX, PADStatus::StickY) is less than or equal to min, and be clamped to 1.0f (or -1.0f) if the absolute value is greater than or equal to max.

After this function has been called, clamped values will be stored for Nintendo GameCube controller Control Stick data (KPADStatus::ex_status.gc.mstick) read using the KPADRead function.

See Also

Revision History

2006/03/01 Initial version.
2006/06/19 Added indication that this function is not supported for UI Tool Version 4.
2006/10/25 Changed the name from Revolution SDK 2.3 to KPADOld library.


CONFIDENTIAL