Lines Matching refs:info
43 static lv_indev_gesture_motion_t * get_motion(uint8_t id, lv_indev_gesture_t * info);
44 static int8_t get_motion_idx(uint8_t id, lv_indev_gesture_t * info);
45 static void process_touch_event(lv_indev_touch_data_t * touch, lv_indev_gesture_t * info);
95 if(recognizer->info->motions[0].finger != -1) { in lv_indev_get_gesture_primary_point()
96 point->x = recognizer->info->motions[0].point.x; in lv_indev_get_gesture_primary_point()
97 point->y = recognizer->info->motions[0].point.y; in lv_indev_get_gesture_primary_point()
109 recognizer->info->finger_cnt == 0) { in lv_indev_recognizer_is_active()
135 point->x = recognizer->info->center.x; in lv_indev_get_gesture_center_point()
136 point->y = recognizer->info->center.y; in lv_indev_get_gesture_center_point()
211 if(r->info == NULL) { in lv_indev_gesture_detect_pinch()
213 r->info = init_gesture_info(); 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()
237 LV_LOG_TRACE("Current finger count: %d state: %d", r->info->finger_cnt, r->state); in lv_indev_gesture_detect_pinch()
240 if(r->info->finger_cnt == 2) { in lv_indev_gesture_detect_pinch()
249 gesture_update_center_point(r->info, 2); in lv_indev_gesture_detect_pinch()
257 gesture_calculate_factors(r->info, 2); in lv_indev_gesture_detect_pinch()
259 if(r->info->scale > LV_GESTURE_PINCH_MAX_INITIAL_SCALE && in lv_indev_gesture_detect_pinch()
267 if(r->info->scale > r->config->pinch_up_threshold || in lv_indev_gesture_detect_pinch()
268 r->info->scale < r->config->pinch_down_threshold) { in lv_indev_gesture_detect_pinch()
270 if(r->info->scale > 1.0f) { in lv_indev_gesture_detect_pinch()
271 r->scale = r->info->scale - (r->config->pinch_up_threshold - 1.0f); in lv_indev_gesture_detect_pinch()
274 else if(r->info->scale < 1.0f) { in lv_indev_gesture_detect_pinch()
276 r->scale = r->info->scale + (1.0f - r->config->pinch_down_threshold); in lv_indev_gesture_detect_pinch()
344 lv_indev_gesture_t * info; in reset_recognizer() local
349 info = recognizer->info; in reset_recognizer()
355 lv_memset(info + motion_arr_sz, 0, sizeof(lv_indev_gesture_t) - motion_arr_sz); in reset_recognizer()
358 recognizer->scale = info->scale = 1; in reset_recognizer()
359 recognizer->info = info; in reset_recognizer()
369 lv_indev_gesture_t * info; in init_gesture_info() local
372 info = lv_malloc(sizeof(lv_indev_gesture_t)); in init_gesture_info()
373 LV_ASSERT_NULL(info); in init_gesture_info()
375 lv_memset(info, 0, sizeof(lv_indev_gesture_t)); in init_gesture_info()
376 info->scale = 1; in init_gesture_info()
379 info->motions[i].finger = -1; in init_gesture_info()
382 return info; in init_gesture_info()
391 static lv_indev_gesture_motion_t * get_motion(uint8_t id, lv_indev_gesture_t * info) in get_motion() argument
396 if(info->motions[i].finger == id) { in get_motion()
397 return &info->motions[i]; in get_motion()
411 static int8_t get_motion_idx(uint8_t id, lv_indev_gesture_t * info) in get_motion_idx() argument
416 if(info->motions[i].finger == id) { in get_motion_idx()
430 static void process_touch_event(lv_indev_touch_data_t * touch, lv_indev_gesture_t * info) in process_touch_event() argument
432 lv_indev_gesture_t * g = info; in process_touch_event()