Skip to content

Commit

Permalink
perf: ✨ Update to [email protected] to support the gamepad
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Sep 16, 2024
1 parent a1c60ec commit 0053e87
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/locales/languages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@
"preferences.input.keyboard.inject.tips": "Set keyboard text injection first option",
"preferences.input.keyboard.inject.options[0].placeholder": "Inject letters as text",
"preferences.input.keyboard.inject.options[1].placeholder": "Force always inject the original button event",
"preferences.input.gamepad.name": "Gamepad",
"preferences.input.gamepad.placeholder": "Disabled",
"preferences.input.gamepad.tips": "This option allows connecting a gamepad (PS4/PS5 or Xbox) to your computer to play Android games. Note: The game being played must support gamepad input.",

"preferences.camera.name": "Camera",
"preferences.camera.camera-facing.name": "Camera Source",
Expand Down
3 changes: 3 additions & 0 deletions src/locales/languages/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@
"preferences.input.keyboard.inject.tips": "设置键盘文本注入首选项",
"preferences.input.keyboard.inject.options[0].placeholder": "将字母作为文本注入",
"preferences.input.keyboard.inject.options[1].placeholder": "强制始终注入原始按键事件",
"preferences.input.gamepad.name": "游戏手柄",
"preferences.input.gamepad.placeholder": "禁用",
"preferences.input.gamepad.tips": "该选项将允许将游戏手柄( PS4/PS5 或 XBox)连接到你的电脑来玩安卓游戏。注意:所玩的游戏必须支持游戏手柄输入。",

"preferences.camera.name": "摄像控制",
"preferences.camera.camera-facing.name": "摄像源",
Expand Down
3 changes: 3 additions & 0 deletions src/locales/languages/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@
"preferences.input.keyboard.inject.tips": "設定鍵盤文字輸入優先選項",
"preferences.input.keyboard.inject.options[0].placeholder": "將字母作為文字輸入",
"preferences.input.keyboard.inject.options[1].placeholder": "強制始終輸入原始按鍵事件",
"preferences.input.gamepad.name": "遊戲手柄",
"preferences.input.gamepad.placeholder": "停用",
"preferences.input.gamepad.tips": "此選項允許將遊戲手柄(PS4/PS5或Xbox)連接到您的電腦以玩安卓遊戲。注意:所玩的遊戲必須支持遊戲手柄輸入。",

"preferences.camera.name": "鏡頭控制",
"preferences.camera.camera-facing.name": "鏡頭來源",
Expand Down
34 changes: 29 additions & 5 deletions src/store/preference/model/input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
props: {
clearable: true,
},
value: undefined,
value: void 0,
placeholder: 'preferences.input.mouse.placeholder',
tips: 'preferences.input.mouse.tips',
options: [
Expand Down Expand Up @@ -51,7 +51,7 @@ export default {
props: {
clearable: true,
},
value: undefined,
value: void 0,
placeholder: 'preferences.input.keyboard.placeholder',
tips: 'preferences.input.keyboard.tips',
options: [
Expand Down Expand Up @@ -81,7 +81,7 @@ export default {
label: 'preferences.input.keyboard.inject.name',
field: '--keyboard-inject',
type: 'KeyboardInjectSelect',
value: undefined,
value: void 0,
placeholder: 'preferences.input.keyboard.inject.placeholder',
tips: 'preferences.input.keyboard.inject.tips',
options: [
Expand All @@ -108,12 +108,36 @@ export default {
videoCodec: {
hidden: true,
field: '--prefer-text',
value: undefined,
value: void 0,
},
videoEncoder: {
hidden: true,
field: '--raw-key-events',
value: undefined,
value: void 0,
},
gamepad: {
label: 'preferences.input.gamepad.name',
field: '--gamepad',
type: 'Select',
value: void 0,
placeholder: 'preferences.input.gamepad.placeholder',
tips: 'preferences.input.gamepad.tips',
options: [
{
label: 'disabled',
value: '',
},
{
label: 'uhid',
value: 'uhid',
placeholder: 'preferences.input.keyboard.options[1].placeholder',
},
{
label: 'aoa',
value: 'aoa',
placeholder: 'preferences.input.keyboard.options[2].placeholder',
},
],
},
},
}
2 changes: 1 addition & 1 deletion src/store/preference/model/record/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
label: 'preferences.record.format.name',
field: '--record-format',
type: 'Select',
value: 'mp4',
value: void 0,
placeholder: 'preferences.record.format.placeholder',
options: [
{
Expand Down

0 comments on commit 0053e87

Please sign in to comment.