Lines Matching defs:valuators

67     g_assert(out->valuators_len >= bytes_to_int32(bits_to_bytes(sizeof(in->valuators.mask))));
73 for (i = 0; out->valuators_len && i < sizeof(in->valuators.mask) * 8; i++)
75 g_assert (XIMaskIsSet(in->valuators.mask, i) == XIMaskIsSet(ptr, i));
76 if (XIMaskIsSet(in->valuators.mask, i))
90 g_assert (XIMaskIsSet(in->valuators.mask, i) == XIMaskIsSet(ptr, i));
91 if (XIMaskIsSet(in->valuators.mask, i))
97 vi.integral = in->valuators.data[i];
98 vi.frac = in->valuators.data_frac[i];
114 vi.integral = in->valuators.data_raw[i];
115 vi.frac = in->valuators.data_raw_frac[i];
243 for (i = 0; i < sizeof(in.valuators.mask) * 8; i++)
245 XISetMask(in.valuators.mask, i);
247 XIClearMask(in.valuators.mask, i);
252 XISetMask(in.valuators.mask, i);
254 in.valuators.data[i] = i;
255 in.valuators.data_raw[i] = i + 10;
256 in.valuators.data_frac[i] = i + 20;
257 in.valuators.data_raw_frac[i] = i + 30;
259 XIClearMask(in.valuators.mask, i);
262 for (i = 0; i < sizeof(in.valuators.mask) * 8; i++)
264 XISetMask(in.valuators.mask, i);
272 int buttons, valuators;
358 valuators = 0;
359 for (i = 0; i < sizeof(in->valuators.mask) * 8; i++)
360 if (XIMaskIsSet(in->valuators.mask, i))
361 valuators++;
363 g_assert(out->valuators_len >= bytes_to_int32(bits_to_bytes(valuators)));
367 for (i = 0; i < sizeof(in->valuators.mask) * 8 ||
370 if (i > sizeof(in->valuators.mask) * 8)
373 g_assert(!XIMaskIsSet(in->valuators.mask, i));
375 g_assert(XIMaskIsSet(in->valuators.mask, i) ==
382 vi.integral = in->valuators.data[i];
383 vi.frac = in->valuators.data_frac[i];
615 for (i = 0; i < sizeof(in.valuators.mask) * 8; i++)
617 XISetMask(in.valuators.mask, i);
619 XIClearMask(in.valuators.mask, i);
622 for (i = 0; i < sizeof(in.valuators.mask) * 8; i++)
624 XISetMask(in.valuators.mask, i);
626 in.valuators.data[i] = i;
627 in.valuators.data_frac[i] = i + 20;
629 XIClearMask(in.valuators.mask, i);
632 for (i = 0; i < sizeof(in.valuators.mask) * 8; i++)
634 XISetMask(in.valuators.mask, i);
873 in.valuators[i].min = 0;
874 in.valuators[i].max = 0;
877 in.valuators[i].max = 1 << 8;
879 in.valuators[i].max = 1 << 16;
881 in.valuators[i].max = 1 << 24;
883 in.valuators[i].max = abs(~0);
886 in.valuators[i].resolution = 1 << 8;
888 in.valuators[i].resolution = 1 << 16;
890 in.valuators[i].resolution = 1 << 24;
892 in.valuators[i].resolution = abs(~0);
895 in.valuators[i].name = i;
898 in.valuators[i].mode = Relative;
901 in.valuators[i].mode = Absolute;