correct omap mouse Reference: /n/atom/patch/applied/omapmouse Date: Fri Jun 6 19:13:06 CES 2014 Signed-off-by: quanstro@quanstro.net --- /sys/src/9/omap/mouse.c Fri Jun 6 19:13:06 2014 +++ /sys/src/9/omap/mouse.c Fri Jun 6 19:13:06 2014 @@ -86,16 +86,16 @@ * after the previous byte, we assume it's the first in a packet. */ static void -ps2mouseputc(int c, int shift) +ps2mouseputc(int c) { static short msg[4]; static int nb; static uchar b[] = {0, 1, 4, 5, 2, 3, 6, 7, 0, 1, 2, 3, 2, 3, 6, 7 }; static ulong lasttick; ulong m; - int buttons, dx, dy; + int shift, buttons, dx, dy; - shift |= mouseshifted; + shift = mouseshifted; m = MACHP(0)->ticks; if(TK2SEC(m - lasttick) > 2) nb = 0;