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 

Need some Help to calibrate Joystick Speed as a Mouse

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie
View previous topic :: View next topic  
Author Message
Vaskituh



Joined: 08 Jan 2007
Posts: 7

Digg It
PostPosted: Mon Jul 28, 2008 4:40 pm    Post subject: Need some Help to calibrate Joystick Speed as a Mouse

Basically i LOVE the speed and calibration of this Script to use the Left CC Joystick as a mouse but for some reason it doesn't work well on my Right CC Joystick, it keeps going to left but it works, it's just that it doesn't stop in one place, always goes to left if i don't go right, up, down or even left (faster)

This is the Script:

if (wiimote.Classic.Joy1X > .05 or < -.05)
mouse.x = mouse.x+((wiimote.Classic.Joy1X-.025)/25)
endif
if (wiimote.Classic.Joy1Y > .05 or < -.05)
mouse.y = mouse.y+((wiimote.Classic.Joy1Y-.025)/25)
endif

if (wiimote.Classic.Joy1X < .05 and > -.05)
mouse.x = mouse.x
endif
if (wiimote.Classic.Joy1Y > -.05 and < .05)
mouse.y = mouse.y
endif

BUT, then i found this Script that WORKS!!! on my Right CC Joystick pretty well but the Speed is too much for a mouse for me Sad

Could anyone help me but the speed of the First Script on the Second but not changing it much for it to keep working ?

This is the Script that works (the one i just described):

if wiimote1.classic.joy2x < -0.05 or wiimote1.classic.joy2x > 0.05
Mouse.DirectInputX = Mouse.DirectInputX + (30)*(wiimote1.classic.joy2x)
endif

if wiimote1.classic.joy2y < -0.05 or wiimote1.classic.joy2y > 0.05
Mouse.DirectInputy = Mouse.DirectInputy + (30)*(wiimote1.classic.joy2y)
endif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie 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