@Snake122 I’m done with my code for my own use. It’s working fine for me alr.
As to @fredemmott’s custom firmware, I’m not familiar with OpenXR, so I’m not entirely sure how his PointCTRL custom firmware works in DCS, but based on his bio on Github, he is a real software dev! (vs me, a very noob hobbyist who only knows Python)
If he knows how to write any code that can move the mouse a specified number of pixels at the driver or kernel level, it should not be that difficult to implement the algorithm I described above without the need for an additional arduino like I needed. Happy to share how I did it.
I think it would be much easier to do that (i.e. write a mouse command injector using my algorithm) than to implement my algorithm via a joystick emulator, since my understanding (which might be wrong) is that joysticks command cursor speeds rather than distances, so you’ll need one more function to convert distances into speed and timing commands (e.g. "hold X cursor speed for Y milisecconds), and this (i) may not be accurate, depending on the polling rate and rounding errors, and (ii) is likely to be laggy, since joysticks probably have a maximum cursor speed, whereas mice can teleport the cursor around the screen by x and y pixels from last point.
If he knows how to send kernel or driver-level mouse commands to move it a specified distance, it would be pretty easy to implement my algorithm.