MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / get_resolution

Method get_resolution

source/binding/NodeJS/src/apis/controller.cpp:308–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308std::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
318std::optional<std::string> ControllerImpl::get_info()
319{

Callers 1

Calls 1

Tested by

no test coverage detected