Lines Matching defs:ms

629 	/* 10ms delay */
2529 proc_mmanplus(struct psm_softc *sc, packetbuf_t *pb, mousestatus_t *ms,
2579 ms->button |= (pb->ipacket[2] &
2582 ms->button |= (pb->ipacket[2] &
2611 ms->button = ms->obutton;
2620 ms->button |= ms->obutton & MOUSE_EXTBUTTONS;
2625 proc_synaptics(struct psm_softc *sc, packetbuf_t *pb, mousestatus_t *ms,
2740 ms->button = touchpad_buttons | guest_buttons;
2746 ms->button = ms->obutton;
2822 ms->button = touchpad_buttons | guest_buttons;
2954 ms->button |= synaction->tap_button;
3169 ms->button |= (*y > 0) ?
3175 ms->button |= (*x > 0) ?
3280 ms->button |= synaction->tap_button;
3305 ms->button |= sc->synaction.tap_button;
3330 if (ms->button & MOUSE_BUTTON4DOWN) {
3332 ms->button &= ~MOUSE_BUTTON4DOWN;
3333 } else if (ms->button & MOUSE_BUTTON5DOWN) {
3335 ms->button &= ~MOUSE_BUTTON5DOWN;
3336 } else if (ms->button & MOUSE_BUTTON6DOWN) {
3338 ms->button &= ~MOUSE_BUTTON6DOWN;
3339 } else if (ms->button & MOUSE_BUTTON7DOWN) {
3341 ms->button &= ~MOUSE_BUTTON7DOWN;
3349 proc_versapad(struct psm_softc *sc, packetbuf_t *pb, mousestatus_t *ms,
3387 ms->button = butmap_versapad[c & MOUSE_PS2VERSA_BUTTONS];
3388 ms->button |= (c & MOUSE_PS2VERSA_TAP) ? MOUSE_BUTTON4DOWN : 0;
3433 mousestatus_t ms;
3462 ms.obutton = sc->button; /* previous button state */
3463 ms.button = butmap[c & MOUSE_PS2_BUTTONS];
3466 ms.button |= ((c & MOUSE_PS2_TAP)) ?
3486 ms.button |=
3489 ms.button |=
3503 ms.button |= (c & MOUSE_PS2INTELLI_BUTTON4DOWN) ?
3505 ms.button |= (c & MOUSE_PS2INTELLI_BUTTON5DOWN) ?
3510 proc_mmanplus(sc, pb, &ms, &x, &y, &z);
3515 ms.button |= ((c & MOUSE_PS2_TAP)) ? 0 :
3524 ms.button |= (pb->ipacket[3] & MOUSE_PS2_BUTTON3DOWN) ?
3526 ms.button |= (pb->ipacket[3] & MOUSE_PS2_BUTTON1DOWN) ?
3534 ms.button |= (c & MOUSE_PS2_TAP) ?
3539 proc_versapad(sc, pb, &ms, &x, &y, &z);
3591 ms.button |= MOUSE_BUTTON4DOWN;
3597 ms.button |= ms.obutton & MOUSE_EXTBUTTONS;
3602 if (proc_synaptics(sc, pb, &ms, &x, &y, &z) != 0)
3630 ms.dx = x;
3631 ms.dy = y;
3632 ms.dz = z;
3633 ms.flags = ((x || y || z) ? MOUSE_POSCHANGED : 0) |
3634 (ms.obutton ^ ms.button);
3636 pb->inputbytes = tame_mouse(sc, pb, &ms, pb->ipacket);
3638 sc->status.flags |= ms.flags;
3639 sc->status.dx += ms.dx;
3640 sc->status.dy += ms.dy;
3641 sc->status.dz += ms.dz;
3642 sc->status.button = ms.button;
3643 sc->button = ms.button;