Skip to content

Controller nodes often merge physical buttons #75

Description

@Finchiedev

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

Metadata

Metadata

Assignees

Labels

To DoSomething that needs to be worked onbugSomething isn't workinglow-priority

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions