fix html gamepads implementation