Lines Matching full:ueimpl
81 UserEventsImpl* ueimpl;
91 ueimpl = (UserEventsImpl*)opaque;
93 status = asyncReader_read(&ueimpl->user_events_reader);
98 switch (ueimpl->state) {
101 ueimpl->state = EXPECTS_PARAMETERS;
103 switch (ueimpl->event_header.event_type) {
105 asyncReader_init(&ueimpl->user_events_reader,
106 &ueimpl->mouse_event,
107 sizeof(ueimpl->mouse_event),
108 &ueimpl->io);
112 asyncReader_init(&ueimpl->user_events_reader,
113 &ueimpl->keycode_event,
114 sizeof(ueimpl->keycode_event),
115 &ueimpl->io);
119 asyncReader_init(&ueimpl->user_events_reader,
120 &ueimpl->generic_event,
121 sizeof(ueimpl->generic_event),
122 &ueimpl->io);
127 ueimpl->event_header.event_type);
134 switch (ueimpl->event_header.event_type) {
136 user_event_mouse(ueimpl->mouse_event.dx,
137 ueimpl->mouse_event.dy,
138 ueimpl->mouse_event.dz,
139 ueimpl->mouse_event.buttons_state);
143 user_event_keycode(ueimpl->keycode_event.keycode);
147 user_event_generic(ueimpl->generic_event.type,
148 ueimpl->generic_event.code,
149 ueimpl->generic_event.value);
154 ueimpl->event_header.event_type);
158 ueimpl->event_header.event_type = -1;
159 ueimpl->state = EXPECTS_HEADER;
160 asyncReader_init(&ueimpl->user_events_reader,
161 &ueimpl->event_header,
162 sizeof(ueimpl->event_header), &ueimpl->io);
167 loopIo_dontWantRead(&ueimpl->io);