Skip to content

Commit

Permalink
remove deprecated commands for scrcpy (#12026)
Browse files Browse the repository at this point in the history
Co-authored-by: Per Nielsen Tikær <[email protected]>
  • Loading branch information
lukutism and pernielsentikaer authored May 3, 2024
1 parent ca658a4 commit 9a1eda7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions extensions/scrcpy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# scrcpy Changelog

## [New Additions] - 2024-04-26

- Removed deprecated command --hid-keyboard and changed to --keyboard=uhid
- Removed deprecated command --hid-mouse and changed to --mouse=uhid

## [New Additions] - 2024-03-04

- Add "--always-on-top" option
Expand Down
8 changes: 4 additions & 4 deletions extensions/scrcpy/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default function Command() {
`${getScrcpyDir()}/scrcpy \
${values["turnScreenOff"] ? "--turn-screen-off" : ""} \
${values["stayAwake"] ? "--stay-awake" : ""} \
${values["hidKeyboard"] ? "--hid-keyboard" : ""} \
${values["hidMouse"] ? "--hid-mouse" : ""} \
${values["hidKeyboard"] ? "--keyboard=uhid" : ""} \
${values["hidMouse"] ? "--mouse=uhid" : ""} \
${values["disableAudio"] ? "--no-audio" : ""} \
${values["alwaysOnTop"] ? "--always-on-top" : ""} \
-m ${values["size"]} \
Expand Down Expand Up @@ -80,8 +80,8 @@ export default function Command() {
<Form.Checkbox id="disableAudio" defaultValue={true} label="Disable audio" storeValue />
<Form.Checkbox id="turnScreenOff" defaultValue={true} label="Turn screen off" storeValue />
<Form.Checkbox id="stayAwake" defaultValue={true} label="Stay awake" storeValue />
<Form.Checkbox id="hidKeyboard" defaultValue={true} label="HID keyboard (USB only)" storeValue />
<Form.Checkbox id="hidMouse" defaultValue={false} label="HID mouse (USB only)" storeValue />
<Form.Checkbox id="hidKeyboard" defaultValue={true} label="HID keyboard" storeValue />
<Form.Checkbox id="hidMouse" defaultValue={false} label="HID mouse" storeValue />
<Form.Checkbox id="alwaysOnTop" defaultValue={false} label="Always on top" storeValue />
</Form>
);
Expand Down

0 comments on commit 9a1eda7

Please sign in to comment.