Lines Matching defs:zmap
348 int zmap[4]; /* MOUSE_{X|Y}AXIS or a button number */
368 .zmap = { 0, 0, 0, 0 },
656 rodent.zmap[0] = MOUSE_XAXIS;
658 rodent.zmap[0] = MOUSE_YAXIS;
669 rodent.zmap[0] = i;
670 rodent.zmap[1] = i + 1;
680 rodent.zmap[j] = i;
683 if ((rodent.zmap[2] != 0) && (rodent.zmap[3] == 0))
684 rodent.zmap[3] = rodent.zmap[2] + 1;
748 if (rodent.zmap[i] > 0) {
750 if (mstate[j] == &bstate[rodent.zmap[i] - 1])
753 rodent.zmap[i] = 1 << (rodent.zmap[i] - 1);
982 if ((rodent.zmap[0] > 0) && (action.dz != 0)) {
2079 switch (rodent.zmap[0]) {
2095 pbuttons &= ~(rodent.zmap[0] | rodent.zmap[1]
2096 | rodent.zmap[2] | rodent.zmap[3]);
2097 if ((act1->dz < -1) && rodent.zmap[2]) {
2098 pbuttons |= rodent.zmap[2];
2101 pbuttons |= rodent.zmap[0];
2103 } else if ((act1->dz > 1) && rodent.zmap[3]) {
2104 pbuttons |= rodent.zmap[3];
2107 pbuttons |= rodent.zmap[1];