Wiimote

Overview
You can use the Wiimote(Plus) and the nunchuck for controlling the viewer. Using a wiimote, one has a powerful freehand 3d-controller which has all the options to navigate freely when in a presentation situation. The software used is cwiid. Cwiid lets you control the accelerometer, the ir-camera, and every button on the wiimote and nunchuck through the use of config-files. The hardware used: 1 Wiimote(~40 euro), 1 nunchuck(~20 euro), 1 wireless wiibar(~15 euro), and a bluetooth dongle(~10 euro).

Procedure

 * Install the bluez libraries (libbluetooth3 and libbluetooth-dev)
 * Run the bluetooth daemon
 * Download and compile cwiid from git
 * Or you can simply download wminput and wmgui via apt-get or so.


 * Make a new configuration file for wminput, and fill with the wiimote-only or wiimote-nunchuck(prefered) setup

Wiimote-Only
There are basically 4 essential keys that the viewer uses, but the wiimote interface is not really suited to control 4 buttons within the hand's normal reach. So - lets have a look at that configfile again - you can see that the right mouse-button is out of alignment with your normal handposition on the wiimote. You normally won't use that button(option menu) as often as the other onces. The buttons within reach are all configured to control the way you position the camera. A-Button is mouse leftclick(select object, select pivot-point), The B-Button is yaw, and digital-down is pitch.

Wiimote-Nunchuck
With a nunchuck we can relieve the moving-controls to the analogue controller. Also, the down-button linked to left-ctrl is somewhat a hack. It works, but it's not the most natural approach possible. The wiimote-nunchuck configuration: Notice the Plugin.nunchuck_stick2btn, which is only in the git-version of cwiid.


 * Load the uinput kernel module
 * Start wminput with the opensim config