| 332 | } |
| 333 | |
| 334 | MaaStatus MaaControllerWait(const MaaController* ctrl, MaaCtrlId id) |
| 335 | { |
| 336 | // LogFunc << VAR_VOIDP(ctrl) << VAR(id); |
| 337 | |
| 338 | if (!ctrl) { |
| 339 | LogError << "handle is null"; |
| 340 | return MaaStatus_Invalid; |
| 341 | } |
| 342 | |
| 343 | return ctrl->wait(id); |
| 344 | } |
| 345 | |
| 346 | MaaBool MaaControllerConnected(const MaaController* ctrl) |
| 347 | { |