Thursday, July 10, 2008

VirtualMouse

I have been dabbling with Senocular's VirtualMouse which is freely available just like WiiFlash. This can be teamed up with WiiFlash to provide some great interaction with Flash applications using the wiimote without taking over control of the system mouse, thus eliminating the risk of interacting with something unintentionally as the VirtualMouse, controlled by the wiimote, will not work outside of the application.

The original application I found which uses WiiFlash and the VirtualMouse ActionScript library provided two ways in which to conrtol the mouse using the wiimote. The first being the directional buttons on the wiimote, and after pressing the Home button, the second being the motion sensors of the wiimote (i.e. tilt it forward to move the mouse down, back to move it up, roll it left to move the mouse left and roll it right to move it right.) The sensitivity of the VirtualMouse could be adjusted using a slider at the top of the application. The components window is written using mxml and the rest has been designed in ActionScript. These two were then combined to give the final application.

I added a third way in which to contol the VirtualMouse myself. When the Plus (+) button is pressed it activates the IR sensor and so the VirtualMouse is controlled by siimply pointing the wiimote at the screen (with the misleadingly named Wii "sensor bar" on top of the monitor). The B button is used as a single click and the A button is used as a double-click. As you can see from the screenshot, the readings at the top tell you 1. if the wiimote is connected to the wiiflash server, 2. if the motion sensors are activated and 3. if the IR sensor is activated. An alert is displayed as a "click" or "double-click" is performed on the appropriate buttons.

This application which provides three different ways of using the wiimote for cursor control can help us decide which method may be best for the final interface. It may also help us decide if cursor control will even be the main form of interacton with the final interface.

All these Flash applications will be demonstrated at the Mid-term Research Day, tomorrow Friday July 11th in DCU.

No comments: