| 415 | } |
| 416 | |
| 417 | MaaCtrlId ControllerAgent::focus_id(MaaCtrlId id) |
| 418 | { |
| 419 | if (id == MaaInvalidId) { |
| 420 | return id; |
| 421 | } |
| 422 | |
| 423 | std::unique_lock lock { focus_ids_mutex_ }; |
| 424 | return *focus_ids_.emplace(id).first; |
| 425 | } |
| 426 | |
| 427 | bool ControllerAgent::handle_connect() |
| 428 | { |