Friday 18 July 2008

Control the Mouse With Your Wiimote Script.

Believe me it is really satisfying to sit back and control your mouse without having to lean forward, you will be dreading that moment when you have to type something.

here is the text version:

//Written by Tom Jones
//
//Controls:
//Dpad = Move the cursor
//A-Button = Left click
//Minus-Button = Right click
//B+Dpad = croll

mouse.DirectInput = mouse.DirectInput + wiimote.Dpad *6
mouse.leftbutton = wiimote.A
mouse.rightbutton = wiimote.minus


if wiimote.b = true
if wiimote.up = true then
mouse.wheelup = true
endif

if wiimote.down = true then
mouse.wheeldown = true
endif

if wiimote.left = true then
mouse.wheelleft = true
endif

if wiimote.right = true then
mouse.WheelRight = true
endif
endif




Here is the download version:

http://www.mediafire.com/?gmtxfyujlte

Thanks for downloading my script

~Tom

4 comments:

Anonymous said...

it actually.

I AM THE POWERPOINT MASTER!!!

Anonymous said...

how can you change it so the wii remote could be used on its side

Anonymous said...

Thanks very much for your script. I just wanted to control the mouse cursor with the Wiimote D-pad plus be able to zoom in on photos (without using a sensor bar, candles etc.) Works perfectly! Using Win10, Toshiba blu-tooth stack and Glovepie 0.43.

Anonymous said...

it works but the cursor keeps on fliquering , it make it hard to target and aim well especially when more than 1 click spot is close to each other. using the mayflash bar instead of Blue tooth dongle