| 69 | struct drv_mouse_device _mouse; |
| 70 | |
| 71 | static void post_event(rt_uint16_t x, rt_uint16_t y, rt_uint8_t event) |
| 72 | { |
| 73 | struct rt_touch_data *minfo = &_mouse.touchdata; |
| 74 | struct rt_channel_msg ch_msg; |
| 75 | |
| 76 | LOG_D("event:%d, x:%d, y:%d\n", event, x, y); |
| 77 | |
| 78 | minfo->x_coordinate = x; |
| 79 | minfo->y_coordinate = y; |
| 80 | minfo->event = event; |
| 81 | ch_msg.type = RT_CHANNEL_RAW; |
| 82 | ch_msg.u.d = (void *)(size_t)event; |
| 83 | rt_channel_send(_mouse.channel, &ch_msg); |
| 84 | } |
| 85 | |
| 86 | static void dsi_touch_thread_entry(void *param) |
| 87 | { |
no test coverage detected