Lines Matching defs:button
878 int button;
951 button = (psc->packet[0] & 0x80) >> 7;
954 if (button && (cur_y1 > 1700) && (cur_x1 < 1700))
955 buttons |= button << 0; /* Left button */
956 else if (button && (cur_y1 > 1700)
958 buttons |= button << 1; /* Middle button */
959 else if (button && (cur_y1 > 1700) && (2700 < cur_x1))
960 buttons |= button << 2; /* Right button */
962 if (button && (cur_y2 > 1700) && (cur_x2 < 1700))
963 buttons |= button << 0; /* Left button */
964 else if (button && (cur_y2 > 1700)
966 buttons |= button << 1; /* Middle button */
967 else if (button && (cur_y2 > 1700) && (2700 < cur_x2))
968 buttons |= button << 2; /* Right button */