Mouse emulating Joystick

BlitzPlus Forums/BlitzPlus Programming/Mouse emulating Joystick

Okay, here's the thing: JoyX() and JoyY() only return a value between -1 and 1, while MouseXSpeed() and MouseYSpeed() return the literal X and Y speed of the mouse (in pixels.) Using MoveMouse in tandem with an If statement that tests the mouse's X/Y speed, you should be able to establish an actual "speed limit" which should cure the sensitivity problem. For instance:
;Try this in your main update loop
mx = MouseX()
my = MouseY()

If MouseXSpeed() > 1
    MoveMouse mx + 1,MouseY()
ElseIf MouseXSpeed() < -1
    MoveMouse mx - 1,MouseY()
EndIf
If MouseYSpeed() > 1
    MoveMouse MouseX(),my + 1
ElseIf MouseXSpeed() < -1
    MoveMouse MouseX(),my - 1
EndIf

As usual, this is just off the top of my head, (what can I say - I'm good at improv!) and I have no idea whether it will work properly - let me know!

By the way, cancerboy - you really like joysticks, doncha? ;)