XIM Community

Script help. How do we simulate smooth turns?  (Read 296 times)

Offline jackal_329

  • Member
  • *
  • Posts: 74
    • View Profile
Script help. How do we simulate smooth turns?
« 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.