Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix copy/paste bug when assigning slider values #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fwienber
Copy link

@fwienber fwienber commented Mar 4, 2020

Fix copy/paste bug when assigning slider values to
device wrapper. Instead of assigning multiple sliders to
subsequent fields of deviceWrapper, always the same field
Slider1 was used.
Now, fields Slider1 ... Slider10 are used as intended.
This should fix (multiple) sliders of DirectInput Joysticks.

When trying to use a Microsoft Sidewinder Precision 2
joystick with InputMapper 1.7, I got everything to work but
the acceleration control, which is reported as a slider.
I stumbled upon this code, not sure whether it is the code
working in IM 1.7 (it seems quite old and says something
about IM 2), but thought I could give it a try.
I wasn't able to build the plugin with this fix (not a C#
developer), but would be glad to test with my joystick.

...to device wrapper. Instead of assigning multiple sliders to
subsequent fields of deviceWrapper, always the same field
Slider1 was used.
Now, fields Slider1 ... Slider10 are used as intended.
This should fix (multiple) sliders of DirectInput Joysticks.

When trying to use a Microsoft Sidewinder Precision 2
joystick with InputMapper 1.7, I got everything to work but
the acceleration control, which is reported as a slider.
I stumbled upon this code, not sure whether it is the code
working in IM 1.7 (it seems quite old and says something
about IM 2), but thought I could give it a try.
I wasn't able to build the plugin with this fix (not a C#
developer), but would be glad to test with my joystick.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant