At last, the use of a Wiimote inside Virtools! You don’t even need a specific BB, only read values from a virtual joystick or emulate keystrokes.
Thanks to Carl Kenner for GlovePie and Deon van der Westhuysen for PPJoy.
(Sorry for the darkness of videos..)
GlovePie allows you to emulate keystrokes, mouse movement and joystick movements depending on other devices input or events. For example if your Wiimote X acceleration vector is more than a certain threshold, you can script GlovePie so that it simulates a keystroke on the Left key. If your game uses the Left key, using the Wiimote will have the same behavior. Or move the mouse left …
PPJoy allows the creation of virtual joysticks in Windows. You then script Glove Pie to map the Wiimote datas to this virtual joystick, effectively enabling the Wiimote in any joystick-based game. Or in Virtools, simply use a Joystick Waiter.
The car demo shows the use of GlovePie to emulate keystrokes. The tilt and roll demo is using the values of the accelerometers to compute the tilt and roll angle of the Wiimote.
Getting the yaw (heading orientation) needs the sensor bar. The translations are also kind of hard to extract, since you don’t know if an acceleration is due to a rotation or a translation (see Wiimote Motion Analysis for more on this). But David said he’ll give it a try, so let’s wait =)