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

POV keylines are only outputting the bindings for the first POV in 'BMS - Auto.key' #102

Closed
Althar93 opened this issue Aug 2, 2023 · 4 comments

Comments

@Althar93
Copy link

Althar93 commented Aug 2, 2023

I was trying to setup my joystick (VKB Gunfight) so that both POVs were active & bound & found that my 'BMS - Auto.key' would only contains keylines the first POV.

Upon inspection of the source code, I discovered that OverrideSettingsFor434U1.cs WriteKeyLines will only output keyline information for POV 0 when using separate roll & throttle axis devices :

if (rollAxis.GetDeviceNumber() == i) sw.Write(deviceControl.joyAssign[i].GetKeyLinePOV(0));

By changing the 'GetKeyLinePOV(0)' to 'GetKeyLinePOV()', the BMS - Auto.key will correctly contains all bindings for all povs on that device.

if (rollAxis.GetDeviceNumber() == i) sw.Write(deviceControl.joyAssign[i].GetKeyLinePOV());

This works for me, but perhaps someone can sanity check & confirm whether this fix is legitimate?

@Althar93
Copy link
Author

Althar93 commented Aug 2, 2023

This is what I came up with : Althar93@6d7c1e9

@arithex
Copy link
Collaborator

arithex commented Aug 3, 2023

I basically did same, or similar thing in pull/101 .. but I don't have a device with two 8-way pov hats, to test it.

I was setting out to fix the nearby/related bug (issues/93), re the shifted-states are horked for pov hats.

I'd recommend testing any fix with multiple devices plugged in (eg. if you have a spare PC game controller or something handy).

(I need to do more testing on pull/101 too.)

@Althar93
Copy link
Author

Althar93 commented Aug 3, 2023

Interesting. In my case/testing, I had a VKB Gunfighter MCG Pro (with two POV hats) and a Mongoos CM3.

Happy to test with more devices/POV hats plugged in and report back.

I can take a look into this later today and post the resulting BMS - Auto.key and how BMS reacts.

@arithex
Copy link
Collaborator

arithex commented Oct 18, 2023

Closing this as fixed, for BMS 4.37 U3 (AL bits available in latest develop-branch build).

BUT if you are able to test on a device with 2 hats, let me know how that works. (Reopen this issue or cut a new one.)

@arithex arithex closed this as completed Oct 18, 2023
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

No branches or pull requests

2 participants