#include <revolution/wpad.h>
#define WPAD_CHAN0 0
#define WPAD_CHAN1 1
#define WPAD_CHAN2 2
#define WPAD_CHAN3 3
#define WPAD_ACC_CLAMP_CUBE 0
#define WPAD_ACC_CLAMP_SPHERE 1
void WPADClampAcc( s32 chan, void *status, u32 type );
chan |
One of the WPAD_CHAN*. |
status |
Pointer to the WPADStatus structure to be clamped. If the err member stores WPAD_ERR_NONE, the motion sensor input value is clamped according to the algorithm below. |
type |
One of the WPAD_CHAN*. |
None.
Clamps the input of the motion sensor of the Wii Remote and Nunchuk.
type can be used to specify cube clamping or sphere clamping as the clamp algorithm to be used with the motion sensor. The motion sensor of the Wii Remote has an active range of up to +/-3.4G on each axis, while the motion sensor of the Nunchuk has an active range of up to +/-2.1G on each axis. Controller data is clamped inside the active range based on the controller data obtained by this function and the amount of change in the unit used for gravitational acceleration as obtained using the WPADGetAccGravityUnit function.
WPAD Functions
WPADGetAccGravityUnit, WPADStatus, WPADFSStatus
2006/08/15 Initial version.
CONFIDENTIAL