Open elgatopanzon opened 1 year ago
I came across this project and ran into the same issue as you. I traced it down to an off-by-one error in the assignment of the device index. Patched it and now it's working flawlessly for me! If you're still interested in using this, you can try my fix and see if it works for you.
The code you wrote is great, and this is a great project. However having some problems which I can't make heads or tails of... Only one of the configured joysticks ever passes input, the other 2 just don't pass anything. Axes are still, buttons don't work.
First of all I replaced the joystick IDs with mine as follows:
The one which works is the middle one. The other 2 don't pass any inputs at all. The keys are configured correctly in the
configuration.rs
file, and when I configured them wrong it gave me an error when running that the event/button was not found for that device.I tested a completely different configuration as well just to see if I was going crazy this time with 2x
usb-Saitek_Saitek_Pro_Flight_Quadrant-event-joystick
and usingby-path
to open each one directly on their port. For that configuration I removed all references of theth
device and mappings, and gave each one the correct mappings in the config file. The 2nd one worked and passed it's inputs without issues including all axes, but the 1st one didn't.Here is the mapping for that device's 3 axes:
I don't really know where to go from here to get it working.