private void updateJoystick(int i) {
		FloatBuffer newAxes = glfwGetJoystickAxes(i);
		ByteBuffer newButtons = glfwGetJoystickButtons(i);

		if (newAxes != null) {
			joystickAxes[i] = newAxes;
		} else if (joystickAxes[i] == null) {
			joystickAxes[i] = createDefaultJoystickAxes();
		}

		if (newButtons != null) {
			joystickButtons[i] = newButtons;
		} else if (joystickButtons[i] == null) {
			joystickButtons[i] = createDefaultJoystickButtons();
		}
	}