| 61 | } |
| 62 | |
| 63 | MaaCtrlId ControllerAgent::post_click(int x, int y, int contact, int pressure) |
| 64 | { |
| 65 | ClickParam p { .point = { x, y }, .contact = contact, .pressure = pressure }; |
| 66 | auto id = post({ .type = Action::Type::click, .param = std::move(p) }); |
| 67 | return focus_id(id); |
| 68 | } |
| 69 | |
| 70 | MaaCtrlId ControllerAgent::post_swipe(int x1, int y1, int x2, int y2, int duration, int contact, int pressure) |
| 71 | { |