DEV Community

Discussion on: Do you have a gamepad? Help me test a library!

Collapse
 
mtpiercey profile image
Matthew Piercey

Cool library! With my Logitech Attack 3 (amazon.com/9632910403-Logitech-Win...

  • Alvanoid works well (tilting the stick left/right moves the ship, Button 9 resets the game, and Button 10 starts it)

  • The gamepad connects properly and is recognized

  • According to the button-mapper example, all of the buttons (including the trigger - maps to Button 0) map to the button one below them (i.e. Button 3 -> Button 2) from 0 until 10 (except button 7, strangely, though I tested it with html5gamepad.com/ and it didn't register so it may be broken). Moving the stick maps to the left analog stick, but the slider doesn't register (html5gamepad.com/ saw it as "Analog 2")

With a cheapy usb "SNES" controller:

  • Everything works; all the buttons are recognized except...
    • > X => B
    • > A => A (nothing new here)
    • > B => Y
    • > Y => X
Collapse
 
alvaromontoro profile image
Alvaro Montoro

By the way, we might have the same cheap USB "SNES" controller, because mine has the same issue with those buttons.

Collapse
 
alvaromontoro profile image
Alvaro Montoro

Wow. That's some thorough testing. Thanks a lot! I will definitely need to create a mapping system, so users can "redefine" the buttons because it seems that the different gamepads all follow different layouts. Thanks again for your help.