Skip to content

Commit fd6fa3b

Browse files
chore: update interface pipeline schema files from MaaFramework
Triggered by 2760c29 [skip changelog]
1 parent 2760c29 commit fd6fa3b

2 files changed

Lines changed: 65 additions & 1 deletion

File tree

deps/tools/interface.schema.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@
271271
"enum": [
272272
"Adb",
273273
"Win32",
274-
"PlayCover"
274+
"PlayCover",
275+
"Gamepad"
275276
]
276277
},
277278
"display_short_side": {
@@ -371,6 +372,48 @@
371372
}
372373
},
373374
"additionalProperties": false
375+
},
376+
"gamepad": {
377+
"type": "object",
378+
"title": "Gamepad 控制器配置",
379+
"description": "虚拟游戏手柄控制器的具体配置(仅 Windows)。需要安装 ViGEm Bus Driver",
380+
"properties": {
381+
"class_regex": {
382+
"type": "string",
383+
"title": "窗口类名正则",
384+
"description": "可选。搜索窗口类名使用的正则表达式,用于截图功能"
385+
},
386+
"window_regex": {
387+
"type": "string",
388+
"title": "窗口标题正则",
389+
"description": "可选。搜索窗口标题使用的正则表达式,用于截图功能"
390+
},
391+
"gamepad_type": {
392+
"type": "string",
393+
"title": "手柄类型",
394+
"description": "可选。虚拟手柄类型,不提供则默认使用 Xbox360",
395+
"enum": [
396+
"Xbox360",
397+
"DualShock4",
398+
"DS4"
399+
],
400+
"default": "Xbox360"
401+
},
402+
"screencap": {
403+
"type": "string",
404+
"title": "截图方式",
405+
"description": "可选。截图方式,不提供则使用默认。仅当配置了窗口正则时有效",
406+
"enum": [
407+
"GDI",
408+
"FramePool",
409+
"DXGI_DesktopDup",
410+
"DXGI_DesktopDup_Window",
411+
"PrintWindow",
412+
"ScreenDC"
413+
]
414+
}
415+
},
416+
"additionalProperties": false
374417
}
375418
},
376419
"required": [

deps/tools/pipeline.schema.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,6 +2114,13 @@
21142114
"$ref": "#/$defs/jsonUInt32",
21152115
"markdownDescription": "*uint*\n\n触点编号,用于区分不同的触控点。可选,默认 0 。\n\n- Adb 控制器:表示手指编号(0 为第一根手指,1 为第二根手指,以此类推)\n- Win32 控制器:表示鼠标按键编号(0 为左键,1 为右键,2 为中键,3 为 XBUTTON1,4 为 XBUTTON2)",
21162116
"default": 0
2117+
},
2118+
"pressure": {
2119+
"title": "Pressure Property",
2120+
"description": "触点力度。可选,默认 1 。",
2121+
"$ref": "#/$defs/jsonInt32",
2122+
"markdownDescription": "*int*\n\n触点力度。可选,默认 1 。",
2123+
"default": 1
21172124
}
21182125
}
21192126
},
@@ -2175,6 +2182,13 @@
21752182
"$ref": "#/$defs/jsonUInt32",
21762183
"markdownDescription": "*uint*\n\n触点编号,用于区分不同的触控点。可选,默认 0 。\n\n- Adb 控制器:表示手指编号(0 为第一根手指,1 为第二根手指,以此类推)\n- Win32 控制器:表示鼠标按键编号(0 为左键,1 为右键,2 为中键,3 为 XBUTTON1,4 为 XBUTTON2)",
21772184
"default": 0
2185+
},
2186+
"pressure": {
2187+
"title": "Pressure Property",
2188+
"description": "触点力度。可选,默认 1 。",
2189+
"$ref": "#/$defs/jsonInt32",
2190+
"markdownDescription": "*int*\n\n触点力度。可选,默认 1 。",
2191+
"default": 1
21782192
}
21792193
}
21802194
},
@@ -2261,6 +2275,13 @@
22612275
"$ref": "#/$defs/jsonUInt32",
22622276
"markdownDescription": "*uint*\n\n触点编号,用于区分不同的触控点。可选,默认 0 。\n\n- Adb 控制器:表示手指编号(0 为第一根手指,1 为第二根手指,以此类推)\n- Win32 控制器:表示鼠标按键编号(0 为左键,1 为右键,2 为中键,3 为 XBUTTON1,4 为 XBUTTON2)",
22632277
"default": 0
2278+
},
2279+
"pressure": {
2280+
"title": "Pressure Property",
2281+
"description": "触点力度。可选,默认 1 。",
2282+
"$ref": "#/$defs/jsonInt32",
2283+
"markdownDescription": "*int*\n\n触点力度。可选,默认 1 。",
2284+
"default": 1
22642285
}
22652286
}
22662287
},

0 commit comments

Comments
 (0)