Lines Matching refs:mi
482 register struct mouseinfo *mi; local
520 mi = &b->mb_info[ms->ms_oldoff];
529 *cp++ = 0x80 | mi->mi_buttons;
531 ms->ms_prevbuttons = mi->mi_buttons;
533 *cp++ = mi->mi_x;
534 *cp++ = -mi->mi_y;
569 (mi->mi_buttons & hwbit)) {
578 if (mi->mi_buttons & hwbit) {
585 fep->time = mi->mi_time;
604 if (mi->mi_y != 0) {
613 fep->value = -mi->mi_y;
614 fep->time = mi->mi_time;
632 if (mi->mi_x != 0) {
640 fep->value = mi->mi_x;
641 fep->time = mi->mi_time;
1104 register struct mouseinfo *mi; local
1113 mi = &b->mb_info[b->mb_off];
1134 mi->mi_buttons = c & (MS_HW_BUT1 | MS_HW_BUT2 | MS_HW_BUT3);
1142 temp = (int)(mi->mi_x + c);
1143 mi->mi_x = BYTECLIP(temp);
1144 uniqtime32(&mi->mi_time); /* record time when sample arrived */
1154 temp = (int)(mi->mi_y - c);
1155 mi->mi_y = BYTECLIP(temp);
1162 temp = (int)(mi->mi_x + c);
1163 mi->mi_x = BYTECLIP(temp);
1164 uniqtime32(&mi->mi_time);
1171 temp = (int)(mi->mi_y - c);
1172 mi->mi_y = BYTECLIP(temp);
1192 if (mi->mi_buttons == msd->msd_oldbutt) {
1196 if (mi->mi_x == 0 && mi->mi_y == 0) {
1205 if (ABS((int)mi->mi_x) <= jitter_radius &&
1206 ABS((int)mi->mi_y) <= jitter_radius) {
1219 msd->msd_oldbutt = mi->mi_buttons;
1233 register struct mouseinfo *mi; in msincr() local
1248 mi = &b->mb_info[b->mb_off]; in msincr()
1251 xabs = ABS((int)mi->mi_x); in msincr()
1252 yabs = ABS((int)mi->mi_y); in msincr()
1256 mi->mi_x = 0; in msincr()
1258 mi->mi_y = 0; in msincr()
1261 oldbutt = mi->mi_buttons; in msincr()
1271 mi = b->mb_info; in msincr()
1273 mi++; in msincr()
1286 mi = b->mb_info; in msincr()
1290 mi->mi_buttons = oldbutt; in msincr()
1291 mi->mi_x = (char)xc; in msincr()
1292 mi->mi_y = (char)yc; in msincr()