The mousexspeed() and mouseyspeed() should be called only once a loop and after it, you can use MoveMouse 400, 300.
This will prevent the mouse from reaching the screen border.
What is it you want it to do exactly ? A joystick falls back into it's centre position when you let it go. The mouse cant detect that. You should either simulate this using the mousebutton or accept that the 'joystick' will stay in it's current position when you let it go.
This will prevent the mouse from reaching the screen border.
What is it you want it to do exactly ? A joystick falls back into it's centre position when you let it go. The mouse cant detect that. You should either simulate this using the mousebutton or accept that the 'joystick' will stay in it's current position when you let it go.