To play with Wiimotes, you need the following hardware:
- A Wiimote. You don't need a wii, but a single Wiimote has a RRP of £31.99.
- A bluetooth module. You can get a USB bluetooth dongle fairly cheeply if
      your computer doesn't have a built in module.


You need to have wminput from cwiid (http://abstrakraft.org/cwiid/). On Ubuntu,
this can be installed using the command:
      sudo apt-get install wminput

Now copy or hard link the 'racer' file in this directory to ~/.cwiid/wminput/.
You will probably need to make the directories first:
      mkdir ~/.cwiid
      mkdir ~/.cwiid/wminput/
then cd to the directory of this Readme, and do this to make a hard link:
      ln racer ~/.cwiid/wminput/
or this to copy:
      cp racer ~/.cwiid/wminput/
If you hard link from an svn checkout, updating the svn checkout will update the
button and axis layout for wiimotes when a developer changes it.

Next, you'll need to synchronise the wiimote.
You may need to enable the uinput kernal module: run 'modprobe uinput' as root.
Press the 1 and 2 buttons on the wiimote simultaneously, and run the command
      wminput -c racer
If successful you will see 'Ready', otherwise you will see 'No wiimotes found'.
In this case, press 1 + 2 if the LEDs on the wiimote stopped flashing, and run
the command again.
If you want to have multiple wiimotes (for multiplayer), I needed to give the
bluetooth addresses explicitly to wminput. You can find the bluetooth address of
your wiimotes by running lswm, which is also included with cwiid and available
to install on ubuntu with:
      sudo apt-get install lswm
After you have found the addresses, run:
      wminput -c racer address
with address replaced by a bluetooth address. You'll still need to put the wii
remote in discoverable mode by pressing 1 and 2. Repeat this for each remote.

Now you have synchronised with all the wiimotes you need, start the game. It
only uses hardware it finds when starting.

To play, hold the wiimote on its side, with the control pad to the left.
- Tilt the remote left and right to steer.
- Hold up or down on the directional pad to accelerate or reverse.
- Hold 1 or 2 to slide left or right.

There is an alternative wminput configuration called racern that uses the
nunchuk as well. If you use this:
-Tilt the wii remote around its axis to accelerate or reverse.
-Tilt the nunchuk to the side to slide left or right.
-Tilt the control stick to the side to steer.

When finished, turn off each wiimote by holding the power button, until its
wminput instance says 'Exiting'.

Have fun!

