Lines Matching refs:button

852     int button;  in moused()  local
909 action0.button = action0.obutton; in moused()
915 action.flags, action.button, action.obutton); in moused()
917 action0.obutton = action0.button; in moused()
940 A(action0.button & MOUSE_BUTTON1DOWN, in moused()
941 action0.button & MOUSE_BUTTON3DOWN)); in moused()
943 action.button, action.obutton); in moused()
946 action0.obutton = action0.button; in moused()
948 flags |= action.obutton ^ action.button; in moused()
954 action2.button, action2.dx, action2.dy, action2.dz); in moused()
957 printf("buttons=%x x=%d y=%d z=%d\n", action2.button, in moused()
967 button = lastbutton ^ action2.button; in moused()
968 lastbutton = action2.button; in moused()
969 printf("diff=%x buts=%x\n", button, lastbutton); in moused()
971 if ((button & (1<<i)) && dbg < 2) { in moused()
983 action.obutton = action.button; in moused()
987 action2.button, action2.dx, action2.dy, action2.dz); in moused()
995 mouse.u.data.buttons = action2.button; in moused()
1595 act->obutton = act->button; in r_protocol()
1597 act->button = (1 << (rBuf - 13)) in r_protocol()
1620 act->obutton = act->button; in r_protocol()
1621 act->button = butmapintelli[(rBuf & MOUSE_MSS_BUTTONS) >> 4] in r_protocol()
1627 act->obutton = act->button; in r_protocol()
1628 act->button = butmapmss2[(rBuf & MOUSE_MSS_BUTTONS) >> 4] in r_protocol()
1634 | (act->obutton ^ act->button); in r_protocol()
1655 act->obutton = act->button; in r_protocol()
1661 act->button = act->obutton & MOUSE_BUTTON4DOWN; in r_protocol()
1663 act->button |= ((pBuf[0] & MOUSE_MSS_BUTTONS) == MOUSE_MSS_BUTTONS) in r_protocol()
1667 act->button |= (act->obutton & MOUSE_BUTTON2DOWN) in r_protocol()
1691 act->button = (act->obutton & (MOUSE_BUTTON2DOWN | MOUSE_BUTTON4DOWN)) in r_protocol()
1701 act->button = butmapmsc[(~pBuf[0]) & MOUSE_MSC_BUTTONS]; in r_protocol()
1707 act->button = butmaphit[pBuf[0] & 0x07]; in r_protocol()
1714 act->button = butmapmsc[pBuf[0] & MOUSE_MSC_BUTTONS]; in r_protocol()
1720 act->button = butmapversa[(pBuf[0] & MOUSE_VERSA_BUTTONS) >> 3]; in r_protocol()
1721 act->button |= (pBuf[0] & MOUSE_VERSA_TAP) ? MOUSE_BUTTON4DOWN : 0; in r_protocol()
1745 act->button = butmapmsc[(~pBuf[0]) & MOUSE_MSC_BUTTONS]; in r_protocol()
1751 act->button = butmapps2[pBuf[0] & MOUSE_PS2_BUTTONS]; in r_protocol()
1768 act->button |= (pBuf[3] & MOUSE_EXPLORER_BUTTON4DOWN) in r_protocol()
1770 act->button |= (pBuf[3] & MOUSE_EXPLORER_BUTTON5DOWN) in r_protocol()
1780 act->button |= (pBuf[0] & MOUSE_PS2INTELLI_BUTTON4DOWN) in r_protocol()
1782 act->button |= (pBuf[0] & MOUSE_PS2INTELLI_BUTTON5DOWN) in r_protocol()
1801 act->button |= (pBuf[2] & MOUSE_PS2PLUS_BUTTON4DOWN) in r_protocol()
1803 act->button |= (pBuf[2] & MOUSE_PS2PLUS_BUTTON5DOWN) in r_protocol()
1834 act->button = act->obutton; in r_protocol()
1842 act->button |= act->obutton & MOUSE_EXTBUTTONS; in r_protocol()
1847 act->button |= ((pBuf[0] & MOUSE_PS2_TAP)) ? 0 : MOUSE_BUTTON4DOWN; in r_protocol()
1851 act->button |= (pBuf[3] & MOUSE_PS2_BUTTON3DOWN) in r_protocol()
1853 act->button |= (pBuf[3] & MOUSE_PS2_BUTTON1DOWN) in r_protocol()
1859 act->button |= (pBuf[0] & MOUSE_PS2_TAP) ? MOUSE_BUTTON4DOWN : 0; in r_protocol()
1862 act->button = butmapversaps2[pBuf[0] & MOUSE_PS2VERSA_BUTTONS]; in r_protocol()
1863 act->button |= in r_protocol()
1907 act->button |= MOUSE_BUTTON4DOWN; in r_protocol()
1912 act->button |= act->obutton & MOUSE_EXTBUTTONS; in r_protocol()
1922 act->button = butmapmsc[(~pBuf[0]) & MOUSE_SYS_STDBUTTONS]; in r_protocol()
1927 act->button |= ((~pBuf[7] & MOUSE_SYS_EXTBUTTONS) << 3); in r_protocol()
1941 | (act->obutton ^ act->button); in r_protocol()
1955 a2->obutton = a2->button; in r_statetrans()
1956 a2->button = a1->button; in r_statetrans()
1987 a2->button &= in r_statetrans()
1989 a2->button &= states[mouse_button_state].mask; in r_statetrans()
1990 a2->button |= states[mouse_button_state].buttons; in r_statetrans()
1992 flags |= a2->obutton ^ a2->button; in r_statetrans()
2065 pbuttons = act1->button; in r_map()
2068 act2->obutton = act2->button; in r_map()
2118 act2->button = lbuttons; in r_map()
2121 | (act2->obutton ^ act2->button); in r_map()
2131 int button; in r_timestamp() local
2154 button = MOUSE_BUTTON1DOWN; in r_timestamp()
2157 if (act->button & button) { in r_timestamp()
2173 if (act->button & button) { in r_timestamp()
2178 act->flags |= button; in r_timestamp()
2185 button <<= 1; in r_timestamp()
2792 act->obutton = act->button; in kidspad()
2810 act->button = 0; in kidspad()
2812 act->button |= MOUSE_BUTTON1DOWN; in kidspad()
2814 act->button |= MOUSE_BUTTON2DOWN; in kidspad()