In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

User:Goofster1020/Code Tutorials/Tutorial 1 - Basic Wiimote Usage

From WiiBrew
Jump to navigation Jump to search

This tutorial explains how to use the wiimote in many different ways:

Basic Usage

Wiimote Features

Expansions

Detection

Other


Basic Usage

The following section includes the very basic usage of the Wiimote.

If you are using the Wiimote, no matter what, you always need to have this line in your file:

#include <wiiuse/wpad.h>
//This simple line allows your program access to everything available (in LibWiiuse)  for the Wiimote.


Initializing the Wiimote

In order to turn on and use the Wiimote, you need to add this line (at least once) in your program:

WPAD_Init();
// This will turn on and allow you to use the Wiimote.


Disconnecting the Wiimote

Wiimote Features

Using the Buttons

Using the Joysticks

Using the Accelerometer

Using the IR

Using Rumble

Expansions

Nunchuk

Classic Controller

Guitar

Balance Board

Detection

Wiimote Detection

Expansion Detection

Other

Wiimote Settings

Wiimote Callbacks