#include #include #include #include #include "devdraw.h" enum { Nbutton = 10 }; static int debug; static struct { int b[Nbutton]; int init; } map; static void initmap(void) { char *p; int i; p = getenv("mousedebug"); if(p && p[0]) debug = atoi(p); for(i=0; i= 0) nbut |= 1< %#b\n", but, nbut); return nbut; }