Game Development Reference
In-Depth Information
Table 8-4. Player LEDs
Bit
Mask
LEDs
4
0x10
1
5
0x20
2
6
0x40
3
7
0x80
4
Other Neat Tricks
You can do a lot of neat stuff with the Wiimote besides receiving button events. For example,
to make the Wiimote rumble (after a successful connection perhaps), send:
a2 11 01
To make it stop, send:
a2 11 00
Other neat stuff that can be done with the following tools:
Sounds : The Wiimote has a small low-quality electric speaker that can
be used for short sound effects during gameplay.
Accelerometer : The accelerometer measures linear acceleration in a
free fall frame of reference. If the Wiimote is in free fall, it will report zero
acceleration. At rest, it will report an upward acceleration (+Z when
horizontal) equal to gravity ( g = 9.8 m/s 2 ), but in the opposite direction.
This fact can be used to derive tilt movements and more.
Camera : The Wii Remote includes a monochrome camera with built-in
image processing. The camera's built-in image processing is capable
of tracking up to four moving objects available to the host. Raw pixel
data is not available to the host, so the camera cannot be used to take
conventional pictures.
Tip The complete bible about the Wiimote operation modes is available online from the WiiBrew
folks at http://wiibrew.org/wiki/Wiimote .
 
 
Search WWH ::




Custom Search