Table of Contents

Method MaaWlRootsControllerCreate

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

MaaWlRootsControllerCreate(string, bool)

Create a wlroots controller for Linux.

public static nint MaaWlRootsControllerCreate(string wlrSocketPath, bool useWin32VkCode)

Parameters

wlrSocketPath string

The wayland socket path (e.g., "/run/user/1000/wayland-0").

useWin32VkCode bool


If true, key codes passed to click_key / key_down / key_up are
interpreted as Win32 Virtual-Key codes (VK_*) and translated to Linux evdev codes
internally. If false, key codes are passed through as raw evdev codes.

Returns

nint

The controller handle, or nullptr on failure.

Remarks

This controller is designed for wlroots on Linux.