void update(final Controller controller) {
		if (name.contains("ps3")) {
			stickRight.valueX = controller.getAxisValue(1);
			stickRight.valueY = controller.getAxisValue(0);
			stickLeft.valueX = controller.getAxisValue(3);
			stickLeft.valueY = controller.getAxisValue(2);
		} else {
			stickLeft.valueX = controller.getAxisValue(1);
			stickLeft.valueY = controller.getAxisValue(0);
			stickRight.valueX = controller.getAxisValue(3);
			stickRight.valueY = controller.getAxisValue(2);
		}


		for (int i = 0; i < controller.getButtonCount(); i++) {
			buttons[i].name = controller.getButtonName(i);
			buttons[i].value = controller.isButtonPressed(i);
		}
	}