Lines Matching defs:axis
62 AxisInfoPtr axis;
104 axis = &dev.valuator->axes[0];
105 assert(axis->scroll.increment == 3.0);
106 assert(axis->scroll.type == SCROLL_TYPE_VERTICAL);
107 assert(axis->scroll.flags == 0);
112 axis = &dev.valuator->axes[1];
113 assert(axis->scroll.increment == 2.0);
114 assert(axis->scroll.type == SCROLL_TYPE_HORIZONTAL);
115 assert(axis->scroll.flags == 0);
117 /* can add another non-preffered axis */
126 axis = &dev.valuator->axes[1];
127 assert(axis->scroll.increment == 5.5);
128 assert(axis->scroll.type == SCROLL_TYPE_VERTICAL);
129 assert(axis->scroll.flags == SCROLL_FLAG_PREFERRED);
134 axis = &dev.valuator->axes[0];
135 assert(axis->scroll.increment == 8.8);
136 assert(axis->scroll.type == SCROLL_TYPE_HORIZONTAL);
137 assert(axis->scroll.flags == SCROLL_FLAG_PREFERRED);
142 axis = &dev.valuator->axes[0];
143 assert(axis->scroll.type == SCROLL_TYPE_NONE);
145 /* can overwrite axis with new settings */
148 axis = &dev.valuator->axes[0];
149 assert(axis->scroll.type == SCROLL_TYPE_VERTICAL);
150 assert(axis->scroll.increment == 5.0);
151 assert(axis->scroll.flags == SCROLL_FLAG_NONE);
154 assert(axis->scroll.type == SCROLL_TYPE_VERTICAL);
155 assert(axis->scroll.increment == 3.0);
156 assert(axis->scroll.flags == SCROLL_FLAG_NONE);