Table of Contents

Method MaaControllerGetResolution

Namespace
MaaFramework.Binding.Interop.Native
Assembly
MaaFramework.Binding.Native.dll

MaaControllerGetResolution(nint, out int, out int)

Get the raw (unscaled) device resolution.

public static bool MaaControllerGetResolution(nint ctrl, out int width, out int height)

Parameters

ctrl nint

The controller handle.

width int

Output parameter for the raw width.

height int

Output parameter for the raw height.

Returns

bool

true if the resolution is available, false otherwise.

Remarks

This returns the actual device screen resolution before any scaling.