| 306 | } |
| 307 | |
| 308 | std::optional<std::tuple<int32_t, int32_t>> ControllerImpl::get_resolution() |
| 309 | { |
| 310 | int32_t width = 0; |
| 311 | int32_t height = 0; |
| 312 | if (!MaaControllerGetResolution(controller, &width, &height)) { |
| 313 | return std::nullopt; |
| 314 | } |
| 315 | return std::make_tuple(width, height); |
| 316 | } |
| 317 | |
| 318 | std::optional<std::string> ControllerImpl::get_info() |
| 319 | { |
no test coverage detected