Lines Matching refs:fingers
94 struct focaltech_finger_state fingers[FOC_MAX_FINGERS]; member
123 struct focaltech_finger_state *finger = &state->fingers[i]; in focaltech_report_state()
154 unsigned char fingers = packet[1]; in focaltech_process_touch_packet() local
161 state->fingers[i].active = fingers & 0x1; in focaltech_process_touch_packet()
162 if (!state->fingers[i].active) { in focaltech_process_touch_packet()
167 state->fingers[i].valid = false; in focaltech_process_touch_packet()
169 fingers >>= 1; in focaltech_process_touch_packet()
189 state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2]; in focaltech_process_abs_packet()
190 state->fingers[finger].y = (packet[3] << 8) | packet[4]; in focaltech_process_abs_packet()
192 state->fingers[finger].valid = true; in focaltech_process_abs_packet()
205 state->fingers[finger1].x += (char)packet[1]; in focaltech_process_rel_packet()
206 state->fingers[finger1].y += (char)packet[2]; in focaltech_process_rel_packet()
221 state->fingers[finger2].x += (char)packet[4]; in focaltech_process_rel_packet()
222 state->fingers[finger2].y += (char)packet[5]; in focaltech_process_rel_packet()