Lines Matching defs:nbuttons
38 int nbuttons;
53 nbuttons = 0;
58 nbuttons = ((XButtonInfoPtr)ip)->num_buttons;
63 if (nbuttons == 0) {
73 map = (unsigned char *) malloc(sizeof(unsigned char) * nbuttons);
75 XGetDeviceButtonMapping(display, device, map, nbuttons);
77 for(idx=1; idx < nbuttons + 1; idx++) {
102 int nbuttons;
117 nbuttons = 0;
122 nbuttons = ((XButtonInfoPtr)ip)->num_buttons;
127 if (nbuttons == 0) {
138 map = (unsigned char *) malloc(sizeof(unsigned char) * nbuttons);
140 XGetDeviceButtonMapping(display, device, map, nbuttons);
142 min = (argc > nbuttons + 1) ? nbuttons + 1 : argc;
147 XSetDeviceButtonMapping(display, device, map, nbuttons);