Standard Controller (WPAD) Sample Demos

Location

$REVOLUTION_SDK_ROOT/build/demos/wpaddemo

Compilation

Go to the directory $REVOLUTION_SDK_ROOT/build/demos/wpaddemo and type make. An executable (*.elf) file will be generated under the path $REVOLUTION_SDK_ROOT/RVL/bin/demos/wpaddemo/.

Execution

Move to the $REVOLUTION_SDK_ROOT/RVL/bin/demos/wpaddemo/ directory and perform the following steps:

Description

wpadsample This sample executes basic controller processes (connect/disconnect, allow/disallow connection, vibration, memory read/write, hotswapping of external controllers, and so on) and displays controller information for the Wii Remote (buttons, acceleration, pointer, distance from the TV, and so on). Without inserting an external extended controller, a process for virtually changing the device type is available only in the debug version.

Using the Demo:
Operate using the Nintendo GameCube Controller connected to 1P.
+Control PadMoves the cursor in the operation menu located in the lower right of the screen.
A ButtonRuns or stops the operation selected in the operation menu.
B ButtonSets whether to allow/deny connections for Wii Remotes that have already been registered.
Z ButtonStarts or stops simple pairing.

Controls Menu:
RumblePeriodically vibrates the Wii Remote at the specified channel.
InfoGets information from the specified channel (indicators, remaining battery life, and so on).
DisconnectDisconnects the Wii Remote at the specified channel.
ACCEnables or disables the Motion Sensor at the specified channel.
DPDStarts or stops the Pointer at the specified channel.
DPD_FULLStarts or stops the Pointer at the specified channel, in Full mode.
ExtGimmickOperates or stops any special mechanisms in the external extension controller attached to the Wii Remote at the specified channel.
Read memReads data from the memory of the Wii Remote at the specified channel.
Write memWrites data to the memory of the Wii Remote at the specified channel.
Dummy ExtSimulates the insertion or removal of a device that returns WPAD_DEV_FUTURE at the specified channel.
wpad_axdemo Outputs audio data processed by AX from the Wii Remote speaker.

Using the Demo:
+Control Pad, A Button, B Button, 1 Button, 2 ButtonPlays the sounds assigned to each of these buttons.
+ButtonMutes output from the speaker.
- ButtonCancels mute.
HOMEStops currently playing sounds.
wpad_seqdemo Uses SEQ to play MIDI data through the Wii Remote speaker.

Using the Demo:
A ButtonStarts or stops sound playback.
wpad_spdemo Uses SP to play SE (sound effects) from the Wii Remote speaker.

Using the Demo:
A ButtonPlays back the sound.
memory Reads and writes data to the internal memory of the Wii Remote. This demo does not display anything to the TV screen; it only performs serial output.

Using the Demo:
A ButtonWrites data to the Wii Remote memory. Writes data with a different value for each channel. To confirm that the data was written properly, reads the data back out after writing it.
B ButtonReads data in the Wii Remote memory. After reading, the data that was read is compared to the data used during the writes to each channel, then the name of the application that performed the write and the date and time of the write are displayed.
sync Performs both normal and simple pairing.

Using the Demo:
Operate using the Nintendo GameCube Controller connected to 1P.
A ButtonStarts normal pairing.
B ButtonDeletes all registration information.
X ButtonStarts simple pairing.
Y ButtonStops simple pairing.
L ButtonStarts normal pairing (high speed version).
R ButtonStarts simple pairing (high speed version).
dummy_checker Simulates change of the device type of the Wii Remote connected to 1P without actually plugging in an external extension controller. Because only a debug version of this function has been prepared, only this version works.

Using the Demo:
Operate using the Nintendo GameCube Controller connected to 1P.
A ButtonSimulates insertion of a device that returns WPAD_DEV_FUTURE.
B ButtonSimulates device removal.
X ButtonSimulates insertion of a device that returns WPAD_DEV_NOT_SUPPORTED.

See Also

WPAD Functions

Revision History

2008/08/28 Revised terminology.
2008/04/16 Deleted full_mode.
2007/07/19 Added the description for operating demos.
2007/07/11 Combined several demos into wpadsample.
2007/04/18 Added dummy_checker.
2006/09/18 Added accept.
2006/09/06 Added the config, full_mode, memory, shutdown, and sync demos.
2006/08/07 Added the wpad_seqdemo and wpad_spdemo demos.
2006/07/19 Added the wpad_axdemo demo.
2006/06/19 Overall revision reflecting support for wireless communication.
2006/03/01 Initial version.


CONFIDENTIAL