
I'm Using PS2 Controller, And the Second Analog is Controlled By
Control Device Z() for the y Axes And
JoyStick Twist Z for the x Axes...
I'm currently controling the mouse with it like this...
` Mushroom 2 - JoyMouse Controls
If Control Device Z() < -150 Then Position Mouse MouseX(),MouseY()+(Control Device Z()/70)-(Run#*2)
If Control Device Z() > 150 Then Position Mouse MouseX(),MouseY()+(Control Device Z()/70)+(Run#*2)
If Joystick Twist Z() < 25000 Then Position Mouse MouseX()-(Joystick Twist Z()/1000)-Run#,MouseY()
If Joystick Twist Z() > 45000 Then Position Mouse MouseX()+(Joystick Twist Z()/1000)+Run#,MouseY()
BUT its Slow And acts kind off strange...
I doubt anyone knows but is there a simply way to control the mouse with the joypad like this?
Try This Code...
Perform CheckList For Control Devices
Set Control Device CheckList String$(1)
Empty CheckList
Do
` Mushroom 2 - JoyMouse Controls
If Control Device Z() < -150 Then Position Mouse MouseX(),MouseY()+(Control Device Z()/70)-(Run#*2)
If Control Device Z() > 150 Then Position Mouse MouseX(),MouseY()+(Control Device Z()/70)+(Run#*2)
If Joystick Twist Z() < 25000 Then Position Mouse MouseX()-(Joystick Twist Z()/1000)-Run#,MouseY()
If Joystick Twist Z() > 45000 Then Position Mouse MouseX()+(Joystick Twist Z()/1000)+Run#,MouseY()
Loop