Skip to content

Possible bad implementation of DirectInput Sliders ? #99

Description

@LMCrashy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions