| plan 9 kernel history: overview | file list | diff list |
1997/1112/port/devmouse.c (diff list | history)
| 1997/1101/sys/src/9/port/devmouse.c:418,428 – 1997/1112/sys/src/9/port/devmouse.c:418,429 (short | long | prev | next) | ||
| 1993/1006 | short x; int dx, dy, newbuttons; | |
| 1997/1112 | /* * an extra byte comes for middle button motion. * only two possible values for the extra byte. */ if(c == 0x00 || c == 0x20){ | |
| 1993/1006 | /* an extra byte gets sent for the middle button */ middle = (c&0x20) ? 2 : 0; newbuttons = (mouse.buttons & ~2) | middle; | |