Browse Source

add wheel scroll of trackball

cuu 2 years ago
parent
commit
1429167abc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Code/devterm_keyboard/trackball.ino

+ 3 - 1
Code/devterm_keyboard/trackball.ino

@@ -91,7 +91,9 @@ void trackball_task(DEVTERM*dv) {
   distances[AXIS_Y] = 0;
   distances[AXIS_Y] = 0;
   interrupts();
   interrupts();
 
 
-  dv->Mouse->move(x, y, -w);
+  if(x !=0 || y != 0 || -w!=0) {
+    dv->Mouse->move(x, y, -w);
+  }
  
  
 }
 }