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

Trouble understanding mSkipAxis #577

Open
hzulla opened this issue Jul 26, 2019 · 5 comments
Open

Trouble understanding mSkipAxis #577

hzulla opened this issue Jul 26, 2019 · 5 comments

Comments

@hzulla
Copy link

hzulla commented Jul 26, 2019

I'm having trouble understanding mSkipAxis in filterTrigger().

The variable isn't setup and just assumed to be false.

Once it's true, it stays true, even if the device configuration later reaches a non-Trigger inputID and the device wants to use Axis 2 or 5 there.

So there can be edge cases where a device won't configure properly.

Would it be okay to just remove mSkipAxis, even if it causes more calls to strstr during the configuration run?

@psyke83
Copy link
Member

psyke83 commented Jul 26, 2019

The purpose of mSkipAxis was to work around an issue I encountered during configuration with my DS3 controller: the left and right trigger would map correctly, but the next item after the right trigger - left thumb - would be erroneously skipped over.

Can you check and see if the same issue occurs with your BigBen controller when mSkipAxis is removed? Thanks.

@hzulla
Copy link
Author

hzulla commented Jul 26, 2019

Ah, that makes sense. Thanks for explaining, that makes my original interpretation of how it works wrong. The edge case remains, though, so will look into this.

@psyke83
Copy link
Member

psyke83 commented Jul 26, 2019

Something like this might improve mSkipAxis behaviour: master...psyke83:mSkipAxis_fix

If you think this implementation is incorrect or may still cause edge cases, let me know... otherwise I can submit as-is.

@hzulla
Copy link
Author

hzulla commented Jul 26, 2019

Thanks. Yes, I do think that's the possible edge case, but let me test this first. (After the weekend, though.)

@hzulla
Copy link
Author

hzulla commented Aug 6, 2019

Maybe just leave it as it is for now. The edge case I described is just that - an edge case. I will try to offer a proper fix for #568 some time later, but until then the existing behaviour of EmulationStation seems fine. Thanks.

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