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

Cannot remap gamepads with inertial sensors #41

Open
xarvh opened this issue Nov 2, 2018 · 4 comments
Open

Cannot remap gamepads with inertial sensors #41

xarvh opened this issue Nov 2, 2018 · 4 comments
Labels

Comments

@xarvh
Copy link
Owner

xarvh commented Nov 2, 2018

Because the library can't distinguish between a number changing because the user deliberately activated a control, or just moved the gamepad.

@xarvh
Copy link
Owner Author

xarvh commented Nov 3, 2018

Possible solution:

Base input recognition rather than on the absolute value, on the difference between the max value and the min value?

Needs to be tested.

@xarvh
Copy link
Owner Author

xarvh commented Dec 4, 2018

A (solid?) solution could be to allow the user to see all the raw outputs, not unlike http://html5gamepad.com/ does, and then for any input select which action it should be bound to.

For any axis and button in the raw input, this manual mode would show to the user:

  • The raw input id (ex: "Axis 4")
  • The current analog value as a slider
  • The current digital value as a switch?
  • The mapped function (ex: "Move Left"; "unused" if none)
  • The mapped inverted function (ex: "Move Right"; "unused" if none)

Pros

Cons

  • It's a lot of work and I don't know if I have the time
  • Requires a way for the UI to switch from the automatic "easy" mode to the new manual mode
  • It is a complex UI that will require a lot more screen space.

@Malax
Copy link

Malax commented Dec 4, 2018

This is probably a way to go, even though it's not very convenient for the user. It's a shame that the gamepad API is in such a bad shape. :(

What do you think about collecting those inputs and sending them to a central server where they can be analyzed? Maybe there is some common data in there that is yet to be seen that might make more game pads compatible out of the box.

@xarvh
Copy link
Owner Author

xarvh commented Dec 4, 2018

That would be way beyond the time I can dedicate to the project.
I am not sure that studying the data in aggregate would yield anything reliably useful.
There would be also issues about trusting user-produced input and keeping your apps up to date with the latest changes in the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants