diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-06-11 16:44:05 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-06-11 16:44:05 +0200 |
commit | d8bcd6c8e4a31a407aebcc3e60cdf3630b0b3c5f (patch) | |
tree | 3b281ed53b41fb8660837c271d356ad4412981fa /sys/src/9/zynq | |
parent | 36d2504adb5a28d8cf9743b47c26c85f51d94b5b (diff) |
zynq: mouse acceleration
Diffstat (limited to 'sys/src/9/zynq')
-rw-r--r-- | sys/src/9/zynq/screen.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/src/9/zynq/screen.c b/sys/src/9/zynq/screen.c index 620b2025f..dbed776c9 100644 --- a/sys/src/9/zynq/screen.c +++ b/sys/src/9/zynq/screen.c @@ -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 |