       accelMax =  20,
       accelMin = -20,
       // Map inputs to this range (pixels)
-      outMin   =  200,
-      outMax   = -200;
+      outMin   =  50,
+      outMax   = -50;
 
 int calibrationCounter = 0;
 
 float xRange[] = {0,0};
 float yRange[] = {0,0};
 
-const int MOUSE_LEFT_PIN = 10,
-          MOUSE_MID_PIN   = 8,
+const int MOUSE_LEFT_PIN = 8,
           MOUSE_RIGHT_PIN = 6;
+//          MOUSE_MID_PIN   = 6;
     
 uint16_t lasttouched = 0,
          currtouched = 0;

  
  // Set a max and min value to not do anything
  sensors_event_t accel, mag, gyro, temp;
  lsm.getEvent(&accel, &mag, &gyro, &temp);  
}





void touchHandler(int id) {
  
  switch(id) {
    case MOUSE_LEFT_PIN:
      Serial.println("Left button touched"); Serial.println("");
      Mouse.press(MOUSE_LEFT);
      break;
//    case MOUSE_MID_PIN:
//      Mouse.press(MOUSE_MIDDLE);
//      break;
    case MOUSE_RIGHT_PIN:

void releaseHandler(int id) {
  //Serial.print(id); Serial.println(" released");
    
  switch(id) {
    case MOUSE_LEFT_PIN:
      Mouse.release(MOUSE_LEFT);
      Serial.println("Left button released"); Serial.println("");
      break;
//    case MOUSE_MID_PIN:
//      Mouse.release(MOUSE_MIDDLE);
//      break;
    case MOUSE_RIGHT_PIN:
      Serial.println("Right button released"); Serial.println("");
      Mouse.release(MOUSE_RIGHT);
      break;
  }
