amepad.buttons.length, gamepad.axes.length );
          }
          // The boxes associated with any given button will turn green if
          // touched and red if pressed. The box height will also scale based
          // on the button's value to make it appear like a button being pushed.
          for (let i = 0; i < gamepad.buttons.length; ++i) {
            this.buttonBoxes[i].pressed = gamepad.buttons[i].pressed;
            this.buttonBoxes[i].value = gamepad.buttons[i].value;
            this.button