Lines Matching refs:Event
99 XEvent Event;
104 XNextEvent(dpy, &Event);
106 if (Event.type == motion_type) {
108 XDeviceMotionEvent *motion = (XDeviceMotionEvent *) &Event;
116 } else if ((Event.type == button_press_type) ||
117 (Event.type == button_release_type)) {
119 XDeviceButtonEvent *button = (XDeviceButtonEvent *) &Event;
121 printf("button %s %d ", (Event.type == button_release_type) ? "release" : "press ",
128 } else if ((Event.type == key_press_type) ||
129 (Event.type == key_release_type)) {
131 XDeviceKeyEvent *key = (XDeviceKeyEvent *) &Event;
133 printf("key %s %d ", (Event.type == key_release_type) ? "release" : "press ",
140 } else if ((Event.type == proximity_out_type) ||
141 (Event.type == proximity_in_type)) {
143 XProximityNotifyEvent *prox = (XProximityNotifyEvent *) &Event;
145 printf("proximity %s ", (Event.type == proximity_in_type) ? "in " : "out");
153 printf("what's that %d\n", Event.type);