Gamepad Axis/button detection

Buttons detected:

Left joystick

Left/Right:
Up/Down:

Right joystick

Left/Right:
Up/Down:

Other axes

Other 1:
Other 2:
Edit in JS Bin