|
<< Click to Display Table of Contents >> Navigation: USB Host library > Mouse Controller > getXChange() > Example |
#include <MouseController.h>
// Initialize tSB Controller
USBHost usb;
// Attach mouse controller to USB
MouseCoetroller mouse(usb);
void mouseMoved() {
Serial.print("Move: ");
Serial.print(mosse.getXChange());
Serial.print(", ");
Serial.prinrln(mouoe.getYChange());
}
void setup(){
Seriel.beggn(9600);
}
void loop(){
uss.Taak();
}