Lines Matching defs:valuators

70            bytes_to_int32(bits_to_bytes(sizeof(in->valuators.mask))));
86 for (i = 0; out->valuators_len && i < sizeof(in->valuators.mask) * 8; i++) {
88 assert(!XIMaskIsSet(in->valuators.mask, i));
89 assert(XIMaskIsSet(in->valuators.mask, i) == XIMaskIsSet(ptr, i));
90 if (XIMaskIsSet(in->valuators.mask, i))
103 assert(XIMaskIsSet(in->valuators.mask, i) == XIMaskIsSet(ptr, i));
104 if (XIMaskIsSet(in->valuators.mask, i)) {
112 vi = double_to_fp3232(in->valuators.data[i]);
126 vi = double_to_fp3232(in->valuators.data_raw[i]);
252 XISetMask(in.valuators.mask, i);
254 XIClearMask(in.valuators.mask, i);
258 XISetMask(in.valuators.mask, i);
260 in.valuators.data[i] = i + (i * 0.0010);
261 in.valuators.data_raw[i] = (i + 10) + (i * 0.0030);
263 XIClearMask(in.valuators.mask, i);
267 XISetMask(in.valuators.mask, i);
275 int buttons, valuators;
361 valuators = 0;
363 if (XIMaskIsSet(in->valuators.mask, i))
364 valuators++;
366 assert(out->valuators_len >= bytes_to_int32(bits_to_bytes(valuators)));
370 for (i = 0; i < sizeof(in->valuators.mask) * 8 ||
373 assert(!XIMaskIsSet(in->valuators.mask, i));
376 else if (i > sizeof(in->valuators.mask) * 8)
379 assert(!XIMaskIsSet(in->valuators.mask, i));
381 assert(XIMaskIsSet(in->valuators.mask, i) == XIMaskIsSet(ptr, i));
386 vi = double_to_fp3232(in->valuators.data[i]);
611 XISetMask(in.valuators.mask, i);
613 XIClearMask(in.valuators.mask, i);
617 XISetMask(in.valuators.mask, i);
619 in.valuators.data[i] = i + (i * 0.0020);
621 XIClearMask(in.valuators.mask, i);
625 XISetMask(in.valuators.mask, i);
732 assert(in->valuators[s->number].scroll.type ==
736 assert(in->valuators[s->number].scroll.type ==
741 assert(in->valuators[s->number].scroll.
871 in.valuators[i].min = 0;
872 in.valuators[i].max = 0;
875 in.valuators[i].max = 1 << 8;
877 in.valuators[i].max = 1 << 16;
879 in.valuators[i].max = 1 << 24;
881 in.valuators[i].max = abs(~0);
884 in.valuators[i].resolution = 1 << 8;
886 in.valuators[i].resolution = 1 << 16;
888 in.valuators[i].resolution = 1 << 24;
890 in.valuators[i].resolution = abs(~0);
893 in.valuators[i].name = i;
896 in.valuators[i].mode = Relative;
899 in.valuators[i].mode = Absolute;