Lines Matching defs:count
164 * input_mt_report_finger_count() - report contact count
166 * @count: the number of contacts
168 * Reports the contact count via BTN_TOOL_FINGER, BTN_TOOL_DOUBLETAP,
174 void input_mt_report_finger_count(struct input_dev *dev, int count)
176 input_event(dev, EV_KEY, BTN_TOOL_FINGER, count == 1);
177 input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2);
178 input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3);
179 input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4);
180 input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5);
187 * @use_count: report number of active contacts as finger count
190 * ABS_PRESSURE. Touchpad finger count is emulated if use_count is true.
199 int oldid, count, i;
206 count = 0;
218 count++;
221 input_event(dev, EV_KEY, BTN_TOUCH, count > 0);
224 if (count == 0 &&
234 count = 1;
237 input_mt_report_finger_count(dev, count);