mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-03-24 21:03:00 +01:00
add wheel scroll of trackball
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user