mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-13 02:38:50 +01:00
add wheel scroll of trackball
This commit is contained in:
parent
b1370d2124
commit
1429167abc
@ -91,7 +91,9 @@ void trackball_task(DEVTERM*dv) {
|
||||
distances[AXIS_Y] = 0;
|
||||
interrupts();
|
||||
|
||||
dv->Mouse->move(x, y, -w);
|
||||
if(x !=0 || y != 0 || -w!=0) {
|
||||
dv->Mouse->move(x, y, -w);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user