ref: 1cb04deeb0622b8d57f75b2defaf64acb2874ed4
parent: 4bf368e3e176f5ef0fcca659d892c9b91e962282
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Fri Oct 7 16:19:09 EDT 2011
mouse: disable ps2 hwaccel by default, drop inconsitent packet start byte
--- a/sys/src/9/pc/mouse.c
+++ b/sys/src/9/pc/mouse.c
@@ -104,12 +104,13 @@
/*
* 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 @@
mousetype = MousePS2;
packetsize = 3;
- mousehwaccel = 1;
+ mousehwaccel = 0;
}
/*
--
⑨