| 271 | } |
| 272 | |
| 273 | MaaCtrlId RemoteController::post_scroll(int dx, int dy) |
| 274 | { |
| 275 | ControllerPostScrollReverseRequest req { |
| 276 | .controller_id = controller_id_, |
| 277 | .dx = dx, |
| 278 | .dy = dy, |
| 279 | }; |
| 280 | auto resp_opt = server_.send_and_recv<ControllerPostScrollReverseResponse>(req); |
| 281 | if (!resp_opt) { |
| 282 | return MaaInvalidId; |
| 283 | } |
| 284 | return resp_opt->ctrl_id; |
| 285 | } |
| 286 | |
| 287 | MaaCtrlId RemoteController::post_shell(const std::string& cmd, int64_t timeout) |
| 288 | { |
no outgoing calls
no test coverage detected