| 72 | } |
| 73 | |
| 74 | MaaCtrlId MaaControllerPostClickV2(MaaController* ctrl, int32_t x, int32_t y, int32_t contact, int32_t pressure) |
| 75 | { |
| 76 | LogFunc << VAR_VOIDP(ctrl) << VAR(x) << VAR(y) << VAR(contact) << VAR(pressure); |
| 77 | |
| 78 | if (!ctrl) { |
| 79 | LogError << "handle is null"; |
| 80 | return MaaInvalidId; |
| 81 | } |
| 82 | |
| 83 | return ctrl->post_click(x, y, contact, pressure); |
| 84 | } |
| 85 | |
| 86 | MaaCtrlId MaaControllerPostSwipe(MaaController* ctrl, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t duration) |
| 87 | { |
no test coverage detected