ref: d8bcd6c8e4a31a407aebcc3e60cdf3630b0b3c5f
parent: 36d2504adb5a28d8cf9743b47c26c85f51d94b5b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jun 11 12:44:05 EDT 2015
zynq: mouse acceleration
--- a/sys/src/9/zynq/screen.c
+++ b/sys/src/9/zynq/screen.c
@@ -172,7 +172,15 @@
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