It might work. It does read the values for the dx port, I just set extremes when I did it. Without a joystick however here it would be tricky to debug to be honest.

I will see if my source is still about from years ago and see if I could put these values in the ini file so you can adjust them yourself.