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

Controller nodes often merge physical buttons #75

Open
Finchiedev opened this issue Jan 16, 2020 · 0 comments
Open

Controller nodes often merge physical buttons #75

Finchiedev opened this issue Jan 16, 2020 · 0 comments
Assignees
Labels
bug Something isn't working low-priority To Do Something that needs to be worked on
Milestone

Comments

@Finchiedev
Copy link
Member

A common bug with the HTML5 Gamepad API is that it sometimes merges multiple buttons into one node (which is hard to prevent given the scope of the API). To combat this, we could let the user split the single node into child nodes of the parent, each with their own range that gets normalized into a percentage.

For example:
D-Pad has 4 buttons but the Gamepad API assigns left+right & up+down into 2 nodes. Given that the left+right node goes to 0 when the left button is pressed, 1 when the right button is pressed and 0.5 when no button is pressed, the user can specify that the node should be split in two:

  • Node 1 is left and has a range from 0-0.5
    • 0% is 0.5
    • 100% is 0
  • Node 2 is right and has a range from 0.5-1
    • 0% is 0.5
    • 100% is 1
@Finchiedev Finchiedev added bug Something isn't working To Do Something that needs to be worked on labels Jan 16, 2020
@Finchiedev Finchiedev added this to the RoboCup 2020 milestone Jan 16, 2020
@Finchiedev Finchiedev self-assigned this Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low-priority To Do Something that needs to be worked on
Projects
None yet
Development

No branches or pull requests

1 participant