Table of Contents

Method MaaControllerPostScroll

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

MaaControllerPostScroll(nint, int, int)

Post a scroll action to the controller.

public static extern long MaaControllerPostScroll(nint ctrl, int dx, int dy)

Parameters

ctrl nint

The controller handle.

dx int

The horizontal scroll delta. Positive values scroll right, negative values scroll left.

dy int

The vertical scroll delta. Positive values scroll up, negative values scroll down.

Returns

long

The control id of the scroll action.

Remarks

Not all controllers support scroll. If not supported, the action will fail.

Scroll is supported by Win32 controllers and custom controllers that implement scroll.

If the controller does not support scroll, the action will fail. Use MaaControllerStatus or
MaaControllerWait to check the result.

The dx/dy values are sent directly as scroll increments. Using multiples of 120 (WHEEL_DELTA) is
recommended for best compatibility.