| View previous topic :: View next topic |
| Author |
Message |
xanfantasy
Joined: 06 Mar 2007 Posts: 13
Digg It |
Posted: Thu Mar 15, 2007 1:32 am Post subject: Script Finding Help |
|
|
| This is kind of weird but could anyone point me to a non-IR mouse script. I need one that tilts so I can show my teacher. |
|
| Back to top |
|
 |
kunalkunal2
Joined: 13 Dec 2006 Posts: 279
Digg It |
Posted: Thu Mar 15, 2007 1:42 am Post subject: |
|
|
| Code: |
//By KunalKunal2
var.xOffset = 11
var.yOffset = 0
var.zOffset = 11
var.xspeed = 1100
var.yspeed = 0
var.zspeed = 1100
var.xCutoff = 1
var.yCutoff = 0
var.zCutoff = 1
//set rotations
var.xRot = Wiimote.RawForceX + var.xOffset
var.yRot = Wiimote.RawForceY + var.yOffset
var.zRot = Wiimote.RawForceZ + var.zOffset
//debug rotation values
debug = 'X:' + var.xRot + ', ' + 'mDIX:' + mouse.DirectInputX + ', ' + 'Z:' + var.zRot + ', ' + 'mDIY:' + mouse.DirectInputY
if var.xRot > var.xCutoff then mouse.DirectInputX = mouse.DirectInputX - .001 * var.xspeed * (var.xRot - var.xCutoff)
if var.xRot < -var.xCutoff then mouse.DirectInputX = mouse.DirectInputX - .001 * var.xspeed * (var.xRot + var.xCutoff)
if var.zRot > var.zCutoff then mouse.DirectInputY = mouse.DirectInputY - .001 * var.zspeed * (var.zRot - var.zCutoff)
if var.zRot < -var.zCutoff then mouse.DirectInputY = mouse.DirectInputY - .001 * var.zspeed * (var.zRot + var.zCutoff)
[code/]
Enjoy |
_________________ Check out my collection of my wii script's
freewebs.com/kunalkunal2 |
|
| Back to top |
|
 |
xanfantasy
Joined: 06 Mar 2007 Posts: 13
Digg It |
Posted: Thu Mar 15, 2007 1:43 am Post subject: |
|
|
| Thanks |
|
| Back to top |
|
 |
|