I’m releasing 2 very small applications for Windows that are nevertheless invaluable. There is already software out there that does these jobs, but this is my take it them using XNA4.
The first release came about as I was asked to do a magic wall thing using Kinect and I managed to put this together in about 5 hours (finished it at 2.30am), so it might not be perfect, but it’s worth a go. It basically allows you to use Kinect connected to a Windows 7 pc to control the windows mouse pointer and perform left clicks. Once you run the software you simply use your right hand to control the mouse pointer by standing in front of Kinect and moving your hand. To left-click you just raise your left hand above your shoulder. It certainly has plenty of uses, an interactive presentation projected onto a wall, which would then be controlled by users standing in front of the wall and controlling the pointer with their hand is our initial thoughts, but it could have so many other uses.
There are various keyboard controls to set things within the application.
ESC key Quits the application.
K key toggles between kinect and mouse control.
LEFT-ARROW & RIGHT-ARROW keys change the scale, which is basically how far you need to move your hand in each direction to move the pointer to the edge of the screen.
UP-ARROW & DOWN-ARROW keys allow you to adjust the angle of the Kinect camera.
SPACE key freezes the video feed into the application, which is useful if you are running on a slow PC.
S key starts the video feed again.
You will need a Windows7 PC, Kinect SDK v1.5 and XNA4 runtime installed and obviously a Kinect (XBOX360 Kinect or Windows Kinect).
Click here to download Kinect Magic Cursor version 1.2
Once you run the application you can minimise it and it will still function, you will need to click back into it though to exit from it and stop the Kinect mouse control.
My second application is based on the first one, as I thought, “why not also do this with the wireless XBOX controller”. So if you already use my xGames and have a wireless XBOX360 controller with USB wireless receiver for Windows then you should try this. It basically allows you to use a wireless XBOX controller as a wireless mouse and multimedia remote control.
Left and right sticks on the controller will control the mouse pointer.
A Button and Left Trigger perform a left-click.
B Button and Right Trigger perform a right-click.
X Button does a double-click.
BACK button quits the application.
LEFT bumper button does a LEFT-ARROW keyboard press (useful for powerpoint).
RIGHT bumper button does a RIGHT-ARROW keyboard press (useful for powerpoint).
The D-PAD works as cursor keys, allowing you to perform LEFT, RIGHT, UP and DOWN cursor key presses.
LEFT-ARROW & RIGHT-ARROW keys on the keyboard allow you to adjust the mouse speed from within the application.
You can minimise the application and the controller will still function as a mouse.
You will need a Windows 7/XP PC and XNA4 runtime installed and a wireless XBOX360 controller with a USB wireless receiver to plug into the PC.
Click here to download xRemote version 1.2
(UPDATE: Minor update which allows you to use A and B on the controller like proper mouse buttons so you can drag and drop things.)