Lines Matching defs:btn
581 struct btn_state *btn = &((struct wsmouse_softc *) sc)->sc_input.btn;
583 if (btn->sync)
585 btn->buttons ^= btn->sync;
587 btn->sync = btn->buttons ^ buttons;
588 btn->buttons = buttons;
973 wsmouse_btn_sync(struct btn_state *btn, struct evq_access *evq)
978 for (sync = btn->sync; sync; sync ^= bit) {
981 ev_type = (btn->buttons & bit) ? BTN_DOWN_EV : BTN_UP_EV;
1078 if (motion->sync || mt_sync || t_sync || input->btn.sync)
1093 if (input->btn.sync)
1094 printf(" btn:0x%02x", input->btn.buttons);
1120 input->btn.sync = 0;
1145 enqueue_randomness(input->btn.buttons
1168 if (input->btn.sync)
1169 wsmouse_btn_sync(&input->btn, &evq);
1683 memset(&input->btn, 0, sizeof(struct btn_state));