kb.c: add curly braces to enable usb mouse nub scrolling
This commit is contained in:
parent
fe62caef5f
commit
b8136286b6
1 changed files with 4 additions and 2 deletions
|
@ -264,10 +264,12 @@ ptrwork(void* a)
|
|||
y = buf[2];
|
||||
}
|
||||
b = maptab[buf[0] & 0x7];
|
||||
if(c > 3 && buf[3] == 1) /* up */
|
||||
if(c > 3 && buf[3] > 0){ /* up */
|
||||
b |= 0x08;
|
||||
if(c > 3 && buf[3] == -1) /* down */
|
||||
}
|
||||
if(c > 3 && buf[3] < 0){ /* down */
|
||||
b |= 0x10;
|
||||
}
|
||||
if(kbdebug > 1)
|
||||
fprint(2, "%s: m%11d %11d %11d\n", argv0, x, y, b);
|
||||
seprint(mbuf, mbuf+sizeof(mbuf), "m%11d %11d %11d", x, y,b);
|
||||
|
|
Loading…
Reference in a new issue