| plan 9 kernel history: overview | file list | diff list |
1994/0730/port/devmouse.c (diff list | history)
| 1994/0624/sys/src/9/port/devmouse.c:363,369 – 1994/0730/sys/src/9/port/devmouse.c:363,369 (short | long | prev | next) | ||
| 1993/1006 | * shift & right button is the same as middle button (for 2 button mice) */ int | |
| 1993/1201 |
| |
| 1994/0730 | m3mouseputc(void *q, int c) | |
| 1993/1006 | { static uchar msg[3]; static int nb; | |
| 1994/0624/sys/src/9/port/devmouse.c:372,377 – 1994/0730/sys/src/9/port/devmouse.c:372,379 | ||
| 1993/1006 | short x; int dx, dy, newbuttons; | |
| 1994/0730 | USED(q); | |
| 1993/1006 | /* * check bit 6 for consistency */ | |
| 1994/0624/sys/src/9/port/devmouse.c:403,409 – 1994/0730/sys/src/9/port/devmouse.c:405,411 | ||
| 1993/1006 | * shift & right button is the same as middle button (for 2 button mice) */ int | |
| 1993/1201 |
| |
| 1994/0730 | mouseputc(void *q, int c) | |
| 1993/1006 | { static short msg[5]; static int nb; | |
| 1994/0624/sys/src/9/port/devmouse.c:410,415 – 1994/0730/sys/src/9/port/devmouse.c:412,418 | ||
| 1993/1006 | static uchar b[] = {0, 4, 2, 6, 1, 5, 3, 7, 0, 2, 2, 6, 1, 5, 3, 7}; int dx, dy, newbuttons; | |
| 1994/0730 | USED(q); | |
| 1993/1006 | if((c&0xF0) == 0x80) nb=0; msg[nb] = c; | |