(axesCount / 2);
          let rowLength = Math.max(buttonCount, axesBoxCount);

          // Place the boxes in a horizontal line
          this.buttonBoxes = [];
          let hl = (rowLength - 1) * BOX_SEPARATION * 0.5;
          for (let x = 0; x < buttonCount; ++x) {
            let box = new GamepadBox([(x * BOX_SEPARATION) - hl, BOX_SET_HEIGHT, BOX_SET_DEPTH]);
            this.buttonBoxes.push(box);
            this.addNode(box);
          }

          this.axesBoxes = [];
          for (let x = 0; 