Lines Matching defs:work
325 MEVENT *work;
337 work = &(sp->_sysmouse_fifo[sp->_sysmouse_tail]);
338 memset(work, 0, sizeof(*work));
339 work->id = NORMAL_EVENT; /* there's only one mouse... */
346 work->bstate |= BUTTON1_PRESSED;
348 work->bstate |= BUTTON2_PRESSED;
350 work->bstate |= BUTTON3_PRESSED;
353 work->bstate |= BUTTON1_RELEASED;
355 work->bstate |= BUTTON2_RELEASED;
357 work->bstate |= BUTTON3_RELEASED;
373 work->x = the_mouse.u.data.x / sp->_sysmouse_char_width;
374 work->y = the_mouse.u.data.y / sp->_sysmouse_char_height;
496 * pretend that GPM can work with any terminal having the kmous