From 066b3ef9bc85e6b86df8e0b04a4a0c6ea9ef04e8 Mon Sep 17 00:00:00 2001 From: SAOAsuna Date: Mon, 9 Nov 2026 01:43:44 +0800 Subject: [PATCH] feat(types): map AnchoredTouch Win32 input method Add AnchoredTouch: 1n << 10n to Win32InputMethod and Win32InputMethodNames. The maa-framework Rust crate (v1.27.0) already carries the bitflag (ANCHORED_TOUCH = sys::MaaWin32InputMethod_AnchoredTouch in common.rs), so interface.json entries using "mouse": "AnchoredTouch" currently fall back to Seize with a warning. AnchoredTouch injects synthetic WM_POINTER touch points: the cursor never moves, the window is never raised, and occluded targets are temporarily made hit-testable at low opacity - the only input method that satisfies zero cursor seizure and zero window flicker. --- src/types/maa.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types/maa.ts b/src/types/maa.ts index 6a8e403e..ad899a42 100644 --- a/src/types/maa.ts +++ b/src/types/maa.ts @@ -141,6 +141,7 @@ export const Win32InputMethod = { SendMessageWithWindowPos: 1n << 7n, PostMessageWithWindowPos: 1n << 8n, Interception: 1n << 9n, + AnchoredTouch: 1n << 10n, } as const; /** Win32 截图方法名称映射 */ @@ -167,6 +168,7 @@ export const Win32InputMethodNames: Record = { SendMessageWithWindowPos: Win32InputMethod.SendMessageWithWindowPos, PostMessageWithWindowPos: Win32InputMethod.PostMessageWithWindowPos, Interception: Win32InputMethod.Interception, + AnchoredTouch: Win32InputMethod.AnchoredTouch, }; /** macOS 截图方法 */