Go Back   Se7enSins Forums > Other Modifications > Nintendo Wii

HOWTO: Use the Wii-Mote In Windows as your Mouse

This is a discussion about HOWTO: Use the Wii-Mote In Windows as your Mouse within the Nintendo Wii section, where you will Discuss Wii news, new mod techniques, games, homebrew, and customizations here.; HOW TO: Use the Wii-Mote In Windows as your Mouse OK, here is how I was able to use the Wii-Mote in Windows using a program called GlovePIE by Carl Kenner. You need a Wii-Mote,



Notices

Reply
 
LinkBack Thread Tools Display Modes
Old 12-22-2006, 09:11 PM   #1 (permalink)
Bridging Leg3nd
Points: 6,978, Level: 35 Points: 6,978, Level: 35 Points: 6,978, Level: 35
Activity: 0% Activity: 0% Activity: 0%
 
Gung Ho Guns's Avatar
 
Join Date: Dec 2005
Location: Atlanta, GA
Posts: 1,917
Tournaments Joined: 0
Tournament Wins: 0
Gave Thanks: 1
Received Thanks: 5
Nominated 0 Times in 0 Posts
TOTM Award(s): 0
Gung Ho Guns will become famous soon enough
HOWTO: Use the Wii-Mote In Windows as your Mouse

HOW TO: Use the Wii-Mote In Windows as your Mouse

OK, here is how I was able to use the Wii-Mote in Windows using a program called GlovePIE by Carl Kenner.

You need a Wii-Mote, and a Bluetooth Adapter for your PC. This DOES NOT work with the Microsoft Bluetooth Stack. You must download another one to get it working. I have successfully gotten it to work with the BlueSolei drivers, but they are only a trial and have expired on me. For a list of other Wii compatible Bluetooth Adapters check out the WiiBrew Wiki.

If you need a new BT driver you can try to DL the trial version of BlueSolei Drivers here

Once your BT is setup and you can successfully see the Nintendo RVL-CNT device in your bluetooth manager, connect to it's HID service. It may also say (keyboard, mouse, joystick). You will need to hold down the 1 and 2 buttons on the wii-mote to put it into discovery mode. While the LED's are blinking do a discover on your computer and it should find the nintendo rvl-cnt device. If the lights go off during the process, press 1 & 2 down again, or hold them during the entire connecting process.

After you have that connected you are ready to download GlovePIE from here:
Carl.Kenner - GlovePIE download

Extract it and run the EXE. Then goto File->Open
and open the file named TestWiimote.PIE

Press run and you should see the number in the debug window move as you rotate the remote. If this is working on to the next step. If it does not work, and it is stuck at -127 your bluetooth driver is not compatible, or it is not successfully connected to the wii-mote.

If your getting numbers you can now try to emulate a mouse. Start a new GlovePIE script and paste this script in there, courtesy of BlackFrog and other members of the WiiLi Forums:

// Show wiimote forces
debug = "X="+Wiimote.RawForceX+' Y='+Wiimote.RawForceY+' Z='+Wiimote.RawForceZ

if wiimote.Up then
Mouse.WheelUp = true
wait 120 ms
Mouse.WheelUp = false
endif
if wiimote.Down then
Mouse.WheelDown = true
wait 120 ms
Mouse.WheelDown = false
endif
if wiimote.Left then
Mouse.WheelLeft = true
wait 120 ms
Mouse.WheelLeft = false
endif
if wiimote.Right then
Mouse.WheelRight = true
wait 120 ms
Mouse.WheelRight = false
endif

Mouse.RightButton = Wiimote.A
Mouse.LeftButton = Wiimote.B

Mouse.MiddleButton = Wiimote.Home
if Wiimote.Plus then
if var.osk= false then
Execute("osk")
var.osk = true
wait 300 ms
endif
endif
if Wiimote.Minus then
if var.osk = true then
ExitProgram
wait 300 ms
var.osk= false
endif
endif

if wiimote.one then
wiimote.leds = wiimote.leds + 1
if(wiimote.Leds>15)
wiimote.Leds=15
endif
wait 120 ms
endif
if wiimote.two then
wiimote.leds = wiimote.leds - 1
if(wiimote.Leds<0)>
wiimote.leds = 0
endif
wait 120 ms
endif

// set these to the offsets when the wiimote is at rest
// will be different for each wiimote most likely
var.x = Wiimote.RawForceX +12 //trim to 0
var.y = Wiimote.RawForceY -37 // trim to 0
var.z = Wiimote.RawForceZ +12 //trim to 0

//precision
var.sense0 = 500
var.thresh0x = 5
var.thresh0y = 2

var.sense = 300
var.threshx = 10
var.threshy = 5

var.sense2 = 100
var.thresh2x = 15
var.thresh2y = 8

var.sense3 = 50
var.thresh3x = 20
var.thresh3y = 12

//first sensitivity setting
//xaxis
if var.x > var.thresh0x
mouse.x = mouse.x - 1/var.sense0
endif
if var.x < -var.thresh0x
mouse.x = mouse.x + 1/var.sense0
endif

//yaxis
if var.z > var.thresh0y
mouse.y = mouse.y - 1/var.sense0
endif
if var.z < -var.thresh0y
mouse.y = mouse.y + 1/var.sense0
endif


//second sensitivity setting
//xaxis
if var.x > var.threshx
mouse.x = mouse.x - 1/var.sense
endif
if var.x < -var.threshx
mouse.x = mouse.x + 1/var.sense
endif

//yaxis
if var.z > var.threshy
mouse.y = mouse.y - 1/var.sense
endif
if var.z < -var.threshy
mouse.y = mouse.y + 1/var.sense
endif

//third sensitivity setting
//xaxis
if var.x > var.thresh2x
mouse.x = mouse.x - 1/var.sense2
endif
if var.x < -var.thresh2x
mouse.x = mouse.x + 1/var.sense2
endif

//yaxis
if var.z > var.thresh2y
mouse.y = mouse.y - 1/var.sense2
endif
if var.z < -var.thresh2y
mouse.y = mouse.y + 1/var.sense2
endif

//fourth sensitivity setting
//xaxis
if var.x > var.thresh3x
mouse.x = mouse.x - 1/var.sense3
endif
if var.x < -var.thresh3x
mouse.x = mouse.x + 1/var.sense3
endif

//yaxis
if var.z > var.thresh3y
mouse.y = mouse.y - 1/var.sense3
endif
if var.z < -var.thresh3y
mouse.y = mouse.y + 1/var.sense3
endif
Now the mouse should be moving when you tilt the wii-mote. Lots of other scripts are being created to work with other PC apps and games. Watch the original thread for more info:
WiiLi.org :: Download Windows driver here.

Join Now!

__________________

240Atlanta.com
Gung Ho Guns is offline   Reply With Quote
Old 12-22-2006, 09:13 PM   #2 (permalink)
DaNk
Points: 11,068, Level: 45 Points: 11,068, Level: 45 Points: 11,068, Level: 45
Activity: 0% Activity: 0% Activity: 0%
 
PAN5Y's Avatar
 
Join Date: Dec 2006
Location: Miami, FL
Posts: 4,453
Tournaments Joined: 0
Tournament Wins: 0
Gave Thanks: 57
Received Thanks: 84
Nominated 0 Times in 0 Posts
TOTM Award(s): 0
PAN5Y has much to be proud ofPAN5Y has much to be proud ofPAN5Y has much to be proud ofPAN5Y has much to be proud ofPAN5Y has much to be proud ofPAN5Y has much to be proud ofPAN5Y has much to be proud ofPAN5Y has much to be proud ofPAN5Y has much to be proud of
Total Awards: 3
Mentor1 Recruiter1 Loved1 
Send a message via AIM to PAN5Y
Thanx for the info

PAN5Y is offline   Reply With Quote
Old 12-22-2006, 09:15 PM   #3 (permalink)
Bridging Leg3nd
Points: 6,978, Level: 35 Points: 6,978, Level: 35 Points: 6,978, Level: 35
Activity: 0% Activity: 0% Activity: 0%
 
Gung Ho Guns's Avatar
 
Join Date: Dec 2005
Location: Atlanta, GA
Posts: 1,917
Tournaments Joined: 0
Tournament Wins: 0
Gave Thanks: 1
Received Thanks: 5
Nominated 0 Times in 0 Posts
TOTM Award(s): 0
Gung Ho Guns will become famous soon enough
np, ive got some more coming so stay tuned
Gung Ho Guns is offline   Reply With Quote
Old 12-22-2006, 10:45 PM   #4 (permalink)
Charlie
Points: 12,176, Level: 47 Points: 12,176, Level: 47 Points: 12,176, Level: 47
Activity: 0% Activity: 0% Activity: 0%
 
mischifous's Avatar
 
Join Date: Dec 2005
Location: Texas, USA
Posts: 5,792
Tournaments Joined: 0
Tournament Wins: 0
Gave Thanks: 28
Received Thanks: 16
Nominated 0 Times in 0 Posts
TOTM Award(s): 0
mischifous is a splendid one to beholdmischifous is a splendid one to beholdmischifous is a splendid one to beholdmischifous is a splendid one to beholdmischifous is a splendid one to beholdmischifous is a splendid one to beholdmischifous is a splendid one to behold
Total Awards: 1
Old Timer 
Send a message via AIM to mischifous Send a message via MSN to mischifous
THanks, this is awsome.
mischifous is offline   Reply With Quote
Old 12-22-2006, 11:45 PM   #5 (permalink)
Dem Pyros
Guest
 
Posts: n/a
Tournaments Joined:
Tournament Wins:
twould be awesome if i had a wiimote......
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On