Lines Matching defs:event
158 * Make sure the main event queue is created. This event queue is
160 * thread should run this event queue's loop during lengthy non-XPCOM
163 * operations so it doesn't run the event loop.
169 printf("Error: could not get main event queue! rc=%08X\n", rc);
340 * Main event loop
348 DFBInputEvent event;
352 while (dfbEventBuffer->GetEvent(dfbEventBuffer, DFB_EVENT(&event)) == DFB_OK)
357 switch (event.type)
360 #define QUEUEKEY(scan) keyEvents[numKeyEvents++] = scan | (event.type == DIET_KEYRELEASE ? 0x80 : 0x00)
366 if ((event.key_id == DIKI_ESCAPE) && (event.modifiers & (DIMM_CONTROL | DIMM_ALT)))
371 //printf("%s: key_code: 0x%x\n", event.type == DIET_KEYPRESS ? "DIET_KEYPRESS" : "DIET_KEYRELEASE", event.key_code);
372 switch ((uint32_t)event.key_id)
428 if (event.type == DIET_KEYPRESS)
445 if (event.type == DIET_KEYPRESS)
457 if (event.type == DIET_KEYPRESS)
470 if (event.type == DIET_KEYPRESS)
483 if (event.type == DIET_KEYPRESS)
497 if (event.key_code != -1)
500 QUEUEKEY(event.key_code);
515 switch (event.axis)
518 mouseXDelta += event.axisrel;
521 mouseYDelta += event.axisrel;
524 mouseZDelta += event.axisrel;
536 if (event.buttons & DIBM_LEFT)
538 if (event.buttons & DIBM_RIGHT)
540 if (event.buttons & DIBM_MIDDLE)