exokitxr / exokit-web

Exokit WebXR engine for the browser
70 stars 18 forks source link

Gamepad button mappings #68

Closed avaer closed 5 years ago

avaer commented 5 years ago

Our WebXR gamepad button mapping from the API to Exokit Web internals is not correct. The trigger/menu/pad button indexes are wrong.

We already know that buttons[0] should be the trigger, but we should map out the full set of buttons.

avaer commented 5 years ago

for the Index, the buttons layout is: [0] = trigger [1] = grip OR A [2] = touchpad OR thumbstick > 0.8 OR clicked

avaer commented 5 years ago

Fixed with https://github.com/exokitxr/exokit-web/pull/70.