You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: