code: private HORIZONTAL_DIRECTION processHorizontalDirection(float[] output, float midRangeHigh, float midRangeLow) {
  
  		output[1] = (output[1] < 0)? 0.0f : output[1];
  		
  		if (output[1] < midRangeLow) {
  
  			output[1] *= -1;
  			return HORIZONTAL_DIRECTION.RIGHT;
  		} 
  		else if (output[1] > midRangeHigh) {
  
  			return HORIZONTAL_DIRECTION.LEFT;
  		} 
  		else {
  
  			return HORIZONTAL_DIRECTION.NONE;
  		}
  	}
docs: <p>Determines the {@link HORIZONTAL_DIRECTION} of the motion and trims
  the sensor reading on the X-Axis to within the bounds handled by the the
  motion detector.
  
  @param output
  the smoothed sensor values
  
  @param midRangeHigh
  the upper-bound of the mid-range which correlates with {@link HORIZONTAL_DIRECTION#NONE}
  
  @param midRangeLow
  the lower-bound of the mid-range which correlates with {@link HORIZONTAL_DIRECTION#NONE}
  
  @return the {@link HORIZONTAL_DIRECTION} of the motion