Lines Matching refs:ev
151 DeviceEvent ev;
182 ev.header = 0xFF;
183 ev.length = sizeof(DeviceEvent);
184 ev.time = time;
185 ev.root_y = x;
186 ev.root_x = y;
187 SetBit(ev.valuators.mask, 0);
188 SetBit(ev.valuators.mask, 1);
189 ev.root = ROOT_WINDOW_ID;
190 ev.corestate = state;
191 ev.detail.key = detail;
193 ev.type = type;
194 ev.detail.key = 0;
195 rc = EventToCore((InternalEvent*)&ev, &core);
200 ev.root_x = x;
201 ev.root_y = y;
202 rc = EventToCore((InternalEvent*)&ev, &core);
207 ev.root_x = x;
208 ev.root_y = y;
209 rc = EventToCore((InternalEvent*)&ev, &core);
214 ev.root_x = x;
215 ev.root_y = y;
216 rc = EventToCore((InternalEvent*)&ev, &core);
222 ev.root_x = x;
223 ev.root_y = y;
225 ev.time = time;
226 rc = EventToCore((InternalEvent*)&ev, &core);
230 ev.detail.key = detail;
231 rc = EventToCore((InternalEvent*)&ev, &core);
235 ev.detail.key = detail;
236 rc = EventToCore((InternalEvent*)&ev, &core);
240 ev.detail.key = detail;
241 rc = EventToCore((InternalEvent*)&ev, &core);
245 ev.detail.key = detail;
247 ev.corestate = state;
248 rc = EventToCore((InternalEvent*)&ev, &core);
252 ev.corestate = state;
253 rc = EventToCore((InternalEvent*)&ev, &core);
262 DeviceEvent ev;
266 ev.header = 0xFF;
267 ev.length = sizeof(DeviceEvent);
269 ev.type = evtype;
270 rc = EventToCore((InternalEvent*)&ev, &core);
290 _dix_test_xi_convert(DeviceEvent *ev, int expected_rc, int expected_count)
296 rc = EventToXI((InternalEvent*)ev, &xi, &count);
301 g_assert(kbp->type == IEventBase + ev->type);
302 g_assert(kbp->detail == ev->detail.key);
303 g_assert(kbp->time == ev->time);
304 g_assert((kbp->deviceid & ~MORE_EVENTS) == ev->deviceid);
305 g_assert(kbp->root_x == ev->root_x);
306 g_assert(kbp->root_y == ev->root_y);
307 g_assert(kbp->state == ev->corestate);
310 g_assert(kbp->root == ev->root);
334 DeviceEvent ev = {0};
362 ev.header = 0xFF;
364 ev.header = 0xFF;
365 ev.length = sizeof(DeviceEvent);
366 ev.time = time;
367 ev.root_y = x;
368 ev.root_x = y;
369 SetBit(ev.valuators.mask, 0);
370 SetBit(ev.valuators.mask, 1);
371 ev.root = ROOT_WINDOW_ID;
372 ev.corestate = state;
373 ev.detail.key = detail;
374 ev.deviceid = deviceid;
377 ev.type = ET_KeyPress; _dix_test_xi_convert(&ev, Success, 1);
378 ev.type = ET_KeyRelease; _dix_test_xi_convert(&ev, Success, 1);
379 ev.type = ET_ButtonPress; _dix_test_xi_convert(&ev, Success, 1);
380 ev.type = ET_ButtonRelease; _dix_test_xi_convert(&ev, Success, 1);
381 ev.type = ET_Motion; _dix_test_xi_convert(&ev, Success, 1);
382 ev.type = ET_ProximityIn; _dix_test_xi_convert(&ev, Success, 1);
383 ev.type = ET_ProximityOut; _dix_test_xi_convert(&ev, Success, 1);
386 ClearBit(ev.valuators.mask, 0);
387 ClearBit(ev.valuators.mask, 1);
388 ev.type = ET_KeyPress; _dix_test_xi_convert(&ev, Success, 1);
389 ev.type = ET_KeyRelease; _dix_test_xi_convert(&ev, Success, 1);
390 ev.type = ET_ButtonPress; _dix_test_xi_convert(&ev, Success, 1);
391 ev.type = ET_ButtonRelease; _dix_test_xi_convert(&ev, Success, 1);
392 ev.type = ET_Motion; _dix_test_xi_convert(&ev, BadMatch, 0);
393 ev.type = ET_ProximityIn; _dix_test_xi_convert(&ev, BadMatch, 0);
394 ev.type = ET_ProximityOut; _dix_test_xi_convert(&ev, BadMatch, 0);
397 SetBit(ev.valuators.mask, 0);
398 SetBit(ev.valuators.mask, 1);
399 SetBit(ev.valuators.mask, 2);
400 SetBit(ev.valuators.mask, 3);
401 SetBit(ev.valuators.mask, 4);
402 SetBit(ev.valuators.mask, 5);
403 SetBit(ev.valuators.mask, 6);
404 ev.type = ET_KeyPress; _dix_test_xi_convert(&ev, Success, 2);
405 ev.type = ET_KeyRelease; _dix_test_xi_convert(&ev, Success, 2);
406 ev.type = ET_ButtonPress; _dix_test_xi_convert(&ev, Success, 2);
407 ev.type = ET_ButtonRelease; _dix_test_xi_convert(&ev, Success, 2);
408 ev.type = ET_Motion; _dix_test_xi_convert(&ev, Success, 2);
409 ev.type = ET_ProximityIn; _dix_test_xi_convert(&ev, Success, 2);
410 ev.type = ET_ProximityOut; _dix_test_xi_convert(&ev, Success, 2);
414 ev.type = ET_KeyPress;
415 ev.detail.key = 256;
416 _dix_test_xi_convert(&ev, Success, 0);
419 ev.type = ET_KeyPress;
420 ev.detail.key = 18;
421 ev.deviceid = 128;
422 _dix_test_xi_convert(&ev, Success, 0);