zynq: mouse acceleration
This commit is contained in:
parent
36d2504adb
commit
d8bcd6c8e4
1 changed files with 9 additions and 1 deletions
|
@ -172,7 +172,15 @@ mousectl(Cmdbuf *cb)
|
|||
return;
|
||||
}
|
||||
|
||||
error("unknown control message");
|
||||
if(strcmp(cb->f[0], "linear") == 0){
|
||||
mouseaccelerate(0);
|
||||
return;
|
||||
}
|
||||
|
||||
if(strcmp(cb->f[0], "accelerated") == 0){
|
||||
mouseaccelerate(cb->nf == 1 ? 1 : atoi(cb->f[1]));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in a new issue