| 20 | } |
| 21 | |
| 22 | std::pair<int, int> SeizeInput::get_target_pos() const |
| 23 | { |
| 24 | if (last_pos_set_) { |
| 25 | return last_pos_; |
| 26 | } |
| 27 | |
| 28 | // 未设置时返回窗口客户区中心 |
| 29 | RECT rect = { }; |
| 30 | if (hwnd_ && GetClientRect(hwnd_, &rect)) { |
| 31 | return { (rect.right - rect.left) / 2, (rect.bottom - rect.top) / 2 }; |
| 32 | } |
| 33 | return { 0, 0 }; |
| 34 | } |
| 35 | |
| 36 | MaaControllerFeature SeizeInput::get_features() const |
| 37 | { |
nothing calls this directly
no outgoing calls
no test coverage detected