Vaskituh
Joined: 08 Jan 2007 Posts: 7
Digg It |
Posted: 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
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 |
|