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

[gamepad-controls] gamepad handling in FF vs Chrome? #342

Open
kylebakerio opened this issue Dec 30, 2020 · 1 comment
Open

[gamepad-controls] gamepad handling in FF vs Chrome? #342

kylebakerio opened this issue Dec 30, 2020 · 1 comment

Comments

@kylebakerio
Copy link
Member

kylebakerio commented Dec 30, 2020

This is not the fault of this library in any way, but I'm seeing my very vanilla, common, basic gamepad work perfectly in chrome, and be waaay off in FF. Looking at a gamepad tester, and looking in the console at the returned values, I see that this is probably because FF maps this controller quite differently (and admittedly worse) than Chrome does.

Is there any way to handle this that you're aware of? All the buttons and axes are there in both, but in FF the variable-sensitivity triggers are reported as axes, for example, as are the dpad buttons. (Chrome says 4 axes and 17 buttons, FF says 8 axes and 11 buttons).

I've already got a work-in-progress button-mapping component I've designed that works fine for chrome, I'm imagining I probably just need to expand it to detect axis values as well now, basically. I'm just going to have to look into how to manually change the stuff that movement controls does in the background, I think.

Any interest on a pull request for this type of thing, and if so, any thoughts on implementation?

@vincentfretin
Copy link
Member

Still an issue?

@vincentfretin vincentfretin changed the title gamepad handling in FF vs Chrome? [gamepad-controls] gamepad handling in FF vs Chrome? Dec 7, 2022
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