ericlbarrett / XOutput

A small DirectInput to Xinput wrapper
GNU Lesser General Public License v3.0
159 stars 43 forks source link

Fix disabled analog sticks #47

Open underscoreglook opened 5 years ago

underscoreglook commented 5 years ago

For the analog sticks, give default values of 127, as 0 is not centered, so will give full tilt value if disabled.

DecoderCoder commented 5 years ago

Thanks for your work.

by the way, for my joystick i replaced for (int i = 1; i <= dev.joystick.Capabilities.AxesCount; i++) in ControllerOptions.cs | Line 48 on for (int i = 1; i <= dev.joystick.Capabilities.AxesCount + 1; i++)

and i could add 6 Axes and it worked nice

underscoreglook commented 5 years ago

Thanks, though based on your comment, I'm not totally sure what changed to get 6 Axes to work, the two pieces of code look identical.

DecoderCoder commented 5 years ago

Thanks, though based on your comment, I'm not totally sure what changed to get 6 Axes to work, the two pieces of code look identical.

My misstake :D. I added + 1

And i need to hide original gamepad, but i don't know how to use SlimDX :(