XIM Community

XIM 4 => XIM 4 Discussions => Commander => Topic started by: jackal_329 on 07:50 PM - 07/11/18

Title: Script help. How do we simulate smooth turns?
Post by: jackal_329 on 07:50 PM - 07/11/18
.
How do we simulate smooth turns?

I'm trying to simulate the right joystick (on the controller) being moved but the following code ends up being jerky.

Code: [Select]
MouseMove, 400, 0, 50, r
and countless variations of the 400 and 50 number without luck.
https://www.autohotkey.com/docs/commands/MouseMove.htm

and also
Code: [Select]
Loop, 5000
{
DllCall("mouse_event", "UInt", 0x01, "UInt", 1, "UInt", 0)
}
https://www.autohotkey.com/docs/commands/DllCall.htm

But again, the in-game mouse movement is all jerky and all over the place. I've searched the forums and can't find a thing.I am using xim4 with SandhawC at 125Hz polling rate.

. Thanks.