This is a really handy program I made to calibrate your Wiimote. No frills attached, just gives you the values to add.
As always, feel free to use modify and redistribute, but leave the names.
Here is an easily modifiable program for FPS games using GlovePIE
More Coming Soon!
Just thought I'd share some of my GlovePIE programs with you. This program is made for Half-Life 2, but is easily modifiable to accommodate any FPS. Edit it all you wish just leave the credits there.
I thought it was hard to find good help with GlovePie program writing, so
Here are some code fragments for creating your own GlovePie program:
Assigning buttons on the wiimote to keys or mouse buttons:
Assign each wiimote button to what you want it to do.
Keyboard.(Key) = Wiimote.(Button/Function)
or
Mouse.(Function) = Wiimote.(Button/Function)
ex.
Mouse.LeftButton = Wiimote.A
Turning on and off the Player Lights and Rumble:
Just for fun.
Wiimote.Led1 = 1 Turns Player 1 LED on
Wiimote.Led4 = 0 Turns Player 4 LED off
Wiimote.Rumble = 1 Turns on the Rumble
While and If:
Use to do multiple things with one button.
while/if (condition)
...
endif
ex.
while wiimote.B = 1
Wiimote.Led1 = 1
Endif
Necessary Code:
Most programs will need this code for the mouse cursor:
// Show wiimote forces
debug = "X="+Wiimote.RawForceX+' Y='+Wiimote.RawForceY+' Z='+Wiimote.RawForceZ
// 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 -36 // trim to 0
var.z = Wiimote.RawForceZ +14 //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
As most of us know, the Wiimote connects to the system through bluetooth wireless. This means that in theory, you could connect your wii remote to your PC through any type of bluetooth adapter. This theory has become a reality. I've compiled several links on how to do this as well as a guide and code for running your wiimote. So here are some links:
GlovePIE download
The program you need to run your wii remote on your pc can be downloaded here. It's called GlovePie, and it does not even need to be installed to use (Cool!)
Alternate Program
Site for another wiimote driver. This one is a lot simpler, and you don't get to chose what each button does, but I found it good for testing my wiimote connection quickly. Again, it does not need to be installed.
Wiili
A wiki that has a lot of info on wii and wii hacks. It's down a lot so don't always expect to be able to get on to it, but it is useful when available.
LiquidIce's Wii hacks
A guy named LiquidIce has created a nice guide on setting up your Wiimote. This site also has a bunch of other easy Wii hacks.
So check out those sites for info on setting up your Wiimote. I'll have my own guide up sometime soon as well. Also, expect code for GlovePie to come soon.