Hi, I recently found the gamepad button mapping is different between native and emscripten builds of my project.
The native build uses glfw to read gamepads, and I was originally hoping I could also use glfw for emscripten, but it turns out emscripten glfw doesn't support gamepads so I ended up using the html5 gamepad APIs on emscripten. Which works, but the buttons are mapped differently! For example, button(0) in html5 refers to a different button to button(0) in glfw. It looks like both glfw and html5 APIs try to present a 'normalized' button mapping but they appear to be incompatible - has any one else had to deal with this? Bye, Mark -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/1af1d21a-9e85-452f-ad32-304804e32671n%40googlegroups.com.
