Lines Matching refs:touch
45 static void process_touch_event(lv_indev_touch_data_t * touch, lv_indev_gesture_t * info);
207 lv_indev_touch_data_t * touch; in lv_indev_gesture_detect_pinch() local
229 touch = touches; in lv_indev_gesture_detect_pinch()
230 process_touch_event(touch, r->info); in lv_indev_gesture_detect_pinch()
234 … i, touch->id, touch->state, touch->point.x, touch->point.y, r->info->finger_cnt); in lv_indev_gesture_detect_pinch()
430 static void process_touch_event(lv_indev_touch_data_t * touch, lv_indev_gesture_t * info) in process_touch_event() argument
437 motion_idx = get_motion_idx(touch->id, g); in process_touch_event()
439 if(motion_idx == -1 && touch->state == LV_INDEV_STATE_PRESSED) { in process_touch_event()
448 motion->start_point.x = touch->point.x; in process_touch_event()
449 motion->start_point.y = touch->point.y; in process_touch_event()
450 motion->point.x = touch->point.x; in process_touch_event()
451 motion->point.y = touch->point.y; in process_touch_event()
452 motion->finger = touch->id; in process_touch_event()
453 motion->state = touch->state; in process_touch_event()
458 else if(motion_idx >= 0 && touch->state == LV_INDEV_STATE_RELEASED) { in process_touch_event()
463 motion = get_motion(touch->id, g); in process_touch_event()
465 motion->state = touch->state; in process_touch_event()
486 motion = get_motion(touch->id, g); in process_touch_event()
487 motion->point.x = touch->point.x; in process_touch_event()
488 motion->point.y = touch->point.y; in process_touch_event()
489 motion->state = touch->state; in process_touch_event()
493 LV_LOG_TRACE("Ignore extra touch id: %d", touch->id); in process_touch_event()