WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script Finding Help

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
xanfantasy



Joined: 06 Mar 2007
Posts: 13

Digg It
PostPosted: 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
View user's profile Send private message Send e-mail
kunalkunal2



Joined: 13 Dec 2006
Posts: 279

Digg It
PostPosted: 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
View user's profile Send private message
xanfantasy



Joined: 06 Mar 2007
Posts: 13

Digg It
PostPosted: Thu Mar 15, 2007 1:43 am    Post subject:

Thanks
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group