Nintendo GameCube Controller (PAD) Sample Demos

Location

$REVOLUTION_SDK_ROOT/build/demos/paddemo

Compilation

Navigate to the $REVOLUTION_SDK_ROOT/build/demos/paddemo directory and enter "make". An executable (.elf) file will be generated under the path $REVOLUTION_SDK_ROOT/RVL/bin/demos/paddemo/.

Execution

Navigate to the $REVOLUTION_SDK_ROOT/RVL/bin/demos/paddemo/ directory and perform the following steps.

Description

Note: These sample demos demonstrate use of the Nintendo GameCube Controller library (the PAD library). To verify the operation of these demos, you must insert a Nintendo GameCube Controller into the Controller Socket.

simple Displays the current status of the Controller inserted in Controller Socket 1.
basic Displays the current status of all Nintendo GameCube Controllers inserted in the Controller Sockets. The program detects and recovers from error conditions.
cont Shows how to use Controller utility functions, such as button auto-repeat and automatic reset.
motor Shows how to adjust rumble motor strength.
sampling Shows how to use the PADSetSamplingCallback function.
clamp2 Shows how to use the clamping functions PADClamp2, PADClampCircle2. and PADClampTrigger.

See Also

PAD Functions

Revision History

2007/05/09 Deleted the simple demo from the sample demos. The demo was deleted because the code did not conform to the guidelines and because the relevant content is already included in the basic demo.
2006/09/07 Added clamp2 to the sample demos.
2006/03/01 Initial version.


CONFIDENTIAL