1 // sketch_11_06_mouse_due
3 #include <MouseController.h>
6 MouseController mouse(usb);
11 Serial.println("Program started");
20 // This function intercepts mouse movements
23 int x = mouse.getXChange();
24 int y = mouse.getYChange();
25 if (x > 50) Serial.print("R");
26 if (x < -50) Serial.print("L");
27 if (y > 50) Serial.print("D");
28 if (y < -50) Serial.print("U");