Maybe try changing it from MouseX and MouseY to CursorX and CursorY. You might have to set these by typing rather than moving the mouse, but they'll change how the thing detects mouse movement to something better suited to emulating a stick.
OS: Windows 10 64 bit Professional
CPU: AMD Ryzen 5900X
RAM: 16GB
GPU: Radeon Vega 56
CPU: AMD Ryzen 5900X
RAM: 16GB
GPU: Radeon Vega 56
