Files
Reims-Go/internal/plugin/bundled/wheel-invert/plugin.json
T

101 lines
2.6 KiB
JSON

{
"schema": 1,
"id": "reims.input.wheel-invert",
"version": "1.0.0",
"name": {
"zh-CN": "滚轮方向反转",
"en-US": "Mouse wheel invert"
},
"description": {
"zh-CN": "针对 macOS 自然滚动方向,在前台为目标虚拟机窗口时反转鼠标滚轮增量",
"en-US": "Invert mouse wheel scroll deltas when a target macOS VM window is focused"
},
"publisher": "Reims-Go",
"license": "Apache-2.0",
"homepage": "https://github.com/Nwflower/reims-go",
"engines": {
"pluginApi": "^1.0.0"
},
"platforms": ["windows-x64"],
"permissions": ["input:filter"],
"activation": ["onStartup"],
"defaultEnabled": false,
"contributes": {
"inputFilters": [
{
"id": "wheel-invert-rule",
"event": "mouse_wheel",
"axis": "vertical",
"transform": "invert",
"scope": "vm_foreground",
"settingKey": "enabled",
"verticalKey": "vertical",
"horizontalKey": "horizontal",
"name": {
"zh-CN": "反转滚轮",
"en-US": "Invert wheel"
}
}
],
"settingsPages": [
{
"id": "wheel-invert-vm-settings",
"title": {
"zh-CN": "滚轮反转",
"en-US": "Wheel invert"
},
"group": "keyboard",
"scope": "vm"
}
]
},
"settings": {
"title": {
"zh-CN": "滚轮反转",
"en-US": "Wheel invert"
},
"x-group": "keyboard",
"x-scope": "vm",
"x-order": ["enabled", "vertical", "horizontal"],
"properties": {
"enabled": {
"type": "boolean",
"title": {
"zh-CN": "为此虚拟机反转滚轮方向",
"en-US": "Invert mouse wheel for this VM"
},
"description": {
"zh-CN": "仅在前台窗口属于该虚拟机时生效,停用后立即卸载钩子",
"en-US": "Active only while this VM window is focused; hook unloads when disabled"
},
"default": false,
"x-effect": "immediate",
"x-scope": "vm",
"x-group": "keyboard"
},
"vertical": {
"type": "boolean",
"title": {
"zh-CN": "反转垂直滚轮",
"en-US": "Invert vertical scroll"
},
"default": true,
"x-effect": "immediate",
"x-scope": "vm",
"x-group": "keyboard"
},
"horizontal": {
"type": "boolean",
"title": {
"zh-CN": "反转水平滚轮",
"en-US": "Invert horizontal scroll"
},
"default": false,
"x-effect": "immediate",
"x-scope": "vm",
"x-group": "keyboard"
}
}
}
}