code: public boolean isControlPressed(int button, int controller) {
  		if (controllerPressed[controller][button]) {
  			controllerPressed[controller][button] = false;
  			return true;
  		}
  		
  		return false;
  	}
docs: Check if a controller button has been pressed since last
  time
  
  @param controller The index of the controller to check
  @param button The button to check for (note that this includes directional controls first)
  @return True if the button has been pressed since last time