Implement frontend part for Input Only Mode. Resolves #177

This commit is contained in:
Yukino Song
2025-02-05 07:21:04 +08:00
parent 23dd06b344
commit bf78a33831
4 changed files with 15 additions and 1 deletions

View File

@@ -169,6 +169,7 @@
"mouse": "enabled",
"high_resolution_scrolling": "enabled",
"native_pen_touch": "enabled",
"enable_input_only_mode": "disabled",
"keybindings": "[0x10,0xA0,0x11,0xA2,0x12,0xA4]", // todo: add this to UI
},
},

View File

@@ -33,7 +33,7 @@ const config = ref(props.config)
<option value="switch">{{ $t("config.gamepad_switch") }}</option>
<option value="xone">{{ $t("config.gamepad_xone") }}</option>
</template>
<template #windows>
<option value="ds4">{{ $t('config.gamepad_ds4') }}</option>
<option value="x360">{{ $t('config.gamepad_x360') }}</option>
@@ -168,6 +168,15 @@ const config = ref(props.config)
v-model="config.native_pen_touch"
default="true"
></Checkbox>
<!-- Enable Input Only Mode -->
<hr>
<Checkbox class="mb-3"
id="enable_input_only_mode"
locale-prefix="config"
v-model="config.enable_input_only_mode"
default="false"
></Checkbox>
</div>
</template>

View File

@@ -226,6 +226,8 @@
"dd_wa_hdr_toggle": "Enable high-contrast workaround for HDR",
"ds4_back_as_touchpad_click": "Map Back/Select to Touchpad Click",
"ds4_back_as_touchpad_click_desc": "When forcing DS4 emulation, map Back/Select to Touchpad Click",
"enable_input_only_mode": "Enable Input Only Mode",
"enable_input_only_mode_desc": "Add an Input Only app entry. When enabled, the app list will only show the current running app and the Input Only entry when streaming. The Input Only entry will not receive any image or audio. Useful for operating the desktop on TV or connecting prepherals which the TV doesn't support with a phone.",
"enable_pairing": "Enable Pairing",
"enable_pairing_desc": "Enable pairing for the Moonlight client. This allows the client to authenticate with the host and establish a secure connection.",
"encoder": "Force a Specific Encoder",

View File

@@ -221,6 +221,8 @@
"dd_wa_hdr_toggle": "为 HDR 启用高对比度临时修复",
"ds4_back_as_touchpad_click": "映射回/选择触摸板点击",
"ds4_back_as_touchpad_click_desc": "强制使用 DS4 模拟时,将“返回”/“选择”映射到触摸板点击",
"enable_input_only_mode": "启用仅输入模式",
"enable_input_only_mode_desc": "新增一个仅输入APP。启用时应用列表在串流时将只显示当前正在运行的APP和仅输入APP。仅输入APP不会接收到任何画面/音频。可以用于用手机更方便地操作电视大屏串流或连接电视不支持的外设。",
"enable_pairing": "启用配对",
"enable_pairing_desc": "启用 Moonlight 客户端的配对。这允许客户端与主机进行身份验证并建立安全连接。",
"encoder": "强制指定编码器",