Lines Matching defs:fingers
54 #define FOC_TOUCH 0x3 /* bitmap of active fingers */
56 #define FOC_REL 0x9 /* relative position of 1-2 fingers */
90 * The touchpad tracks the positions of the fingers for us,
94 struct focaltech_finger_state fingers[FOC_MAX_FINGERS];
123 struct focaltech_finger_state *finger = &state->fingers[i];
154 unsigned char fingers = packet[1];
159 /* the second byte contains a bitmap of all fingers touching the pad */
161 state->fingers[i].active = fingers & 0x1;
162 if (!state->fingers[i].active) {
167 state->fingers[i].valid = false;
169 fingers >>= 1;
189 state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2];
190 state->fingers[finger].y = (packet[3] << 8) | packet[4];
192 state->fingers[finger].valid = true;
205 state->fingers[finger1].x += (s8)packet[1];
206 state->fingers[finger1].y += (s8)packet[2];
213 * If there is an odd number of fingers, the last relative
221 state->fingers[finger2].x += (s8)packet[4];
222 state->fingers[finger2].y += (s8)packet[5];