| 128 | } |
| 129 | |
| 130 | MaaCtrlId MaaControllerPostInputText(MaaController* ctrl, const char* text) |
| 131 | { |
| 132 | LogFunc << VAR_VOIDP(ctrl) << VAR(text); |
| 133 | |
| 134 | if (!ctrl) { |
| 135 | LogError << "handle is null"; |
| 136 | return MaaInvalidId; |
| 137 | } |
| 138 | |
| 139 | if (!text) { |
| 140 | LogError << "text is null"; |
| 141 | return MaaInvalidId; |
| 142 | } |
| 143 | |
| 144 | return ctrl->post_input_text(text); |
| 145 | } |
| 146 | |
| 147 | MaaCtrlId MaaControllerPostStartApp(MaaController* ctrl, const char* intent) |
| 148 | { |
no test coverage detected