Hi,
I was looking at the current implementation of sliders and I'm thinking there is a mis-implementation of the slider support.
Let me explain: According to the DIJOYSTATE2 structure, DirectInput seems to support 2 single-axis sliders only.
However, the Win32Joystick is supporting up to 4 sliders, each one having both X/Y Axis.
It is made so using the two values of the rglSlider array from DIJOYSTATE2 as X/Y axis values for the first slider, and then using rglVSlider, rglASlider and rglFSlider for slider 2, 3 and 4.
But these values are meant to be for Velocity, Acceleration and Force, not actual slider positions.
Thus, the whole implementation may give wrong values with any joystick having more than 1 slider.
Hi,
I was looking at the current implementation of sliders and I'm thinking there is a mis-implementation of the slider support.
Let me explain: According to the DIJOYSTATE2 structure, DirectInput seems to support 2 single-axis sliders only.
However, the Win32Joystick is supporting up to 4 sliders, each one having both X/Y Axis.
It is made so using the two values of the rglSlider array from DIJOYSTATE2 as X/Y axis values for the first slider, and then using rglVSlider, rglASlider and rglFSlider for slider 2, 3 and 4.
But these values are meant to be for Velocity, Acceleration and Force, not actual slider positions.
Thus, the whole implementation may give wrong values with any joystick having more than 1 slider.