Lines Matching defs:fingers
187 int fingers;
194 fingers = ((packet[1] & 0x80) >> 7) +
201 fingers = (packet[0] & 0xc0) >> 6;
205 if (fingers != 1) {
215 input_report_key(dev, BTN_TOUCH, fingers != 0);
221 if (fingers) {
228 input_report_key(dev, BTN_TOOL_FINGER, fingers == 1);
229 input_report_key(dev, BTN_TOOL_DOUBLETAP, fingers == 2);
230 input_report_key(dev, BTN_TOOL_TRIPLETAP, fingers == 3);
253 int fingers, x1, y1, x2, y2;
256 fingers = (packet[0] & 0xc0) >> 6;
257 input_report_key(dev, BTN_TOUCH, fingers != 0);
259 switch (fingers) {
262 * Same as one finger, except report of more than 3 fingers:
266 fingers = 4;
317 input_report_key(dev, BTN_TOOL_FINGER, fingers == 1);
318 input_report_key(dev, BTN_TOOL_DOUBLETAP, fingers == 2);
319 input_report_key(dev, BTN_TOOL_TRIPLETAP, fingers == 3);
320 input_report_key(dev, BTN_TOOL_QUADTAP, fingers == 4);