Lines Matching refs:touch_obj
185 struct graphic_object * touch_obj; member
896 app->touch_obj = NULL; in touch_handle_down()
901 app->touch_obj = wl_surface_get_user_data(surface); in touch_handle_down()
902 i = app->touch_obj->input.touch_event_cnt; in touch_handle_down()
904 app->touch_obj->input.touches[i].point.x = wl_fixed_to_int(x_w); in touch_handle_down()
905 app->touch_obj->input.touches[i].point.y = wl_fixed_to_int(y_w); in touch_handle_down()
906 app->touch_obj->input.touches[i].id = id; in touch_handle_down()
907 app->touch_obj->input.touches[i].timestamp = time; in touch_handle_down()
908 app->touch_obj->input.touches[i].state = LV_INDEV_STATE_PRESSED; in touch_handle_down()
909 app->touch_obj->input.touch_event_cnt++; in touch_handle_down()
912 struct window * window = app->touch_obj->window; in touch_handle_down()
913 switch(app->touch_obj->type) { in touch_handle_down()
947 i = app->touch_obj->input.touch_event_cnt; in touch_handle_up()
949 app->touch_obj->input.touches[i].point.x = 0; in touch_handle_up()
950 app->touch_obj->input.touches[i].point.y = 0; in touch_handle_up()
951 app->touch_obj->input.touches[i].id = id; in touch_handle_up()
952 app->touch_obj->input.touches[i].timestamp = time; in touch_handle_up()
953 app->touch_obj->input.touches[i].state = LV_INDEV_STATE_RELEASED; in touch_handle_up()
955 app->touch_obj->input.touch_event_cnt++; in touch_handle_up()
959 struct window * window = app->touch_obj->window; in touch_handle_up()
960 switch(app->touch_obj->type) { in touch_handle_up()
1002 touch = &app->touch_obj->input.touches[0]; in touch_handle_motion()
1005 for(i = 0; i < app->touch_obj->input.touch_event_cnt; i++) { in touch_handle_motion()
1014 i = app->touch_obj->input.touch_event_cnt; in touch_handle_motion()
1015 app->touch_obj->input.touches[i].point.x = wl_fixed_to_int(x_w); in touch_handle_motion()
1016 app->touch_obj->input.touches[i].point.y = wl_fixed_to_int(y_w); in touch_handle_motion()
1017 app->touch_obj->input.touches[i].id = id; in touch_handle_motion()
1018 app->touch_obj->input.touches[i].timestamp = time; in touch_handle_motion()
1019 app->touch_obj->input.touches[i].state = LV_INDEV_STATE_PRESSED; in touch_handle_motion()
1020 app->touch_obj->input.touch_event_cnt++; in touch_handle_motion()