summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-10-07 20:19:09 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-10-07 20:19:09 +0200
commitc00a72a02dae8a2e8cee2747c70c53861c4bc079 (patch)
tree9ec9bb4fb99e97304464898908ae822c691e39e9
parentcfea121378a067c6655abecbf218dc9f3674aa64 (diff)
downloadplan9front-c00a72a02dae8a2e8cee2747c70c53861c4bc079.tar.xz
mouse: disable ps2 hwaccel by default, drop inconsitent packet start byte
-rw-r--r--sys/src/9/pc/mouse.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/src/9/pc/mouse.c b/sys/src/9/pc/mouse.c
index 66bc1f937..82e1b1e47 100644
--- a/sys/src/9/pc/mouse.c
+++ b/sys/src/9/pc/mouse.c
@@ -104,12 +104,13 @@ ps2mouseputc(int c, int shift)
/*
* check byte 0 for consistency
*/
- if(nb==0 && (c&0xc8)!=0x08)
+ if(nb==0 && (c&0xc8)!=0x08){
if(intellimouse && (c==0x00 || c==0x01 || c==0xFF)){
/* last byte of 4-byte packet */
packetsize = 4;
- return;
}
+ return;
+ }
msg[nb] = c;
if(++nb == packetsize){
@@ -170,7 +171,7 @@ ps2mouse(void)
mousetype = MousePS2;
packetsize = 3;
- mousehwaccel = 1;
+ mousehwaccel = 0;
}
/*