ouseup', e => {
  if (window.document.pointerLockElement) {
    const gamepads = navigator.getGamepads();
    gamepads[1].buttons[1].pressed = false;
    gamepads[1].buttons[1].value = 0;
  }
});
window.addEventListener('mousemove', e => {
  if (window.document.pointerLockElement) {
    const {movementX, movementY} = e;

    /* if (keys.ctrl) {
      const controllerOffset = controllerOffsets[controllerIndex];
      controllerOffset.x += movementX * 0.002;
      controllerOffset.y -= movementY * 0.002;
    